Avoid combining GEPs that might overflow at runtime.
authorStuart Hastings <stuart@apple.com>
Sat, 14 May 2011 05:55:10 +0000 (05:55 +0000)
committerStuart Hastings <stuart@apple.com>
Sat, 14 May 2011 05:55:10 +0000 (05:55 +0000)
commit67f071e69795dca1151cdb8d57d222b6f041d748
treec0f6dec117078c1c224aba3b698d1993cb974235
parentd0118a2371f35faa6af97e67be69e1debc615c42
Avoid combining GEPs that might overflow at runtime.
rdar://problem/9267970

Patch by Julien Lerouge!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131339 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/2011-05-13-InBoundsGEP.ll [new file with mode: 0644]