commit | 7c95debb496624ee43c2f25cc4d7299f4c589bb2 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Tue Feb 05 04:45:32 2008 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Tue Feb 05 04:45:32 2008 +0000 |
tree | 78e1d73fba420395b340acec3c26b0871e03c625 | |
parent | a8701a6c62158b2b84cc24ed2149e4107d03409a [diff] |
Fix a bug compiling PR1978 (perhaps not the only one though) which was incorrectly simplifying "x == (gep x, 1, i)" into false, even though i could be negative. As it turns out, all the code to handle this already existed, we just need to disable the incorrect optimization case and let the general case handle it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46739 91177308-0d34-0410-b5e6-96231b3b80d8