[performance] Optimizer did not descend into general comparison