[llvm-commits] [llvm] r143214 - in /llvm/trunk: lib/Analysis/InstructionSimplify.cpp test/Transforms/InstSimplify/compare.ll

NAKAMURA Takumi geek4civic at gmail.com
Fri Oct 28 17:45:27 PDT 2011


2011/10/29 Duncan Sands <baldrick at free.fr>:
> Author: baldrick
> Date: Fri Oct 28 14:01:20 2011
> New Revision: 143214
>
> URL: http://llvm.org/viewvc/llvm-project?rev=143214&view=rev
> Log:
> The expression icmp eq (select (icmp eq x, 0), 1, x), 0 folds to false.
> Spotted by my super-optimizer in 186.crafty and 450.soplex.  We really
> need a proper infrastructure for handling generalizations of this kind
> of thing (which occur a lot), however this case is so simple that I decided
> to go ahead and implement it directly.
>
> Modified:
>    llvm/trunk/lib/Analysis/InstructionSimplify.cpp
>    llvm/trunk/test/Transforms/InstSimplify/compare.ll

It seems it broke clang stage2.

...Takumi




More information about the llvm-commits mailing list