[llvm-commits] [llvm] r130405 - in /llvm/trunk: lib/Transforms/InstCombine/InstCombineAndOrXor.cpp test/Transforms/InstCombine/merge-icmp.ll
Duncan Sands
baldrick at free.fr
Thu Apr 28 13:03:02 PDT 2011
Hi Benjamin,
> --- llvm/trunk/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp (original)
> +++ llvm/trunk/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp Thu Apr 28 11:58:40 2011
> @@ -769,6 +769,42 @@
> return Builder->CreateICmp(LHSCC, NewOr, LHSCst);
> }
> }
> +
> + // (trunc x) == C1& (and x, CA) == C2 -> (and CA|CMAX) == C1|C2
I guess this should be: (and x, CA|CMAX) == C1|C2
Ciao, Duncan.
More information about the llvm-commits
mailing list