Instcombine constant folding can normalize gep with negative index to index with...
authorEvan Cheng <evan.cheng@apple.com>
Mon, 22 Feb 2010 23:34:00 +0000 (23:34 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Mon, 22 Feb 2010 23:34:00 +0000 (23:34 +0000)
commit6e5dfd4bf5205d5f84d958c9636bc0f57c23b96a
tree45ab0572ebd24f87e676788c693c21f9db5638f6
parent20df2420f7997cdb69c21f6bff27559cb09f7be2
Instcombine constant folding can normalize gep with negative index to index with large offset. When instcombine objsize checking transformation sees these geps where the offset seemingly point out of bound, it should just return "i don't know" rather than asserting.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96825 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/CodeGen/X86/critical-edge-split.ll
test/CodeGen/X86/ins_subreg_coalesce-3.ll
test/CodeGen/X86/trunc-to-bool.ll
test/CodeGen/X86/xor-icmp.ll
test/Transforms/InstCombine/objsize.ll