[llvm-commits] [llvm] r119964 - in /llvm/trunk: lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp lib/Target/README.txt test/CodeGen/X86/switch-or.ll

Duncan Sands baldrick at free.fr
Mon Nov 22 01:51:08 PST 2010


Hi Benjamin,

> Implement the "if (X == 6 || X == 4)" ->  "if ((X|2) == 6)" optimization.

wouldn't it be better to do this in the IR optimizers?

Ciao,

Duncan.



More information about the llvm-commits mailing list