| commit | 20e3b9ac30f26fe3135434e3556c1a462e50e113 | [log] [tgz] |
|---|---|---|
| author | Jim Grosbach <grosbach@apple.com> | Fri Aug 16 00:15:20 2013 +0000 |
| committer | Jim Grosbach <grosbach@apple.com> | Fri Aug 16 00:15:20 2013 +0000 |
| tree | 9ff70d02f083f281cf8b5dc5922bc1f67a39d0fe | |
| parent | 9ee175d8f0975c459a1c90141d69bd78f3ea0047 [diff] |
InstCombine: Simplify if(x!=0 && x!=-1). When both constants are positive or both constants are negative, InstCombine already simplifies comparisons like this, but when it's exactly zero and -1, the operand sorting ends up reversed and the pattern fails to match. Handle that special case. Follow up for rdar://14689217 llvm-svn: 188512