commit | 16cdfd8632e812e3242b6a95d75e84dd92b3e767 | [log] [tgz] |
---|---|---|
author | Duncan Sands <baldrick@free.fr> | Fri Oct 28 19:01:20 2011 +0000 |
committer | Stephen Hines <srhines@google.com> | Mon Nov 14 09:11:27 2011 -0800 |
tree | 247430df3b43948ce0ee1333fd099da6ea309218 | |
parent | ac606272027fee19105fcd9cf7dece8093e37a64 [diff] |
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@143214 91177308-0d34-0410-b5e6-96231b3b80d8