Improve isSafeToLoadUnconditionally to recognize that GEPs with constant
authorBob Wilson <bob.wilson@apple.com>
Fri, 29 Jan 2010 19:19:08 +0000 (19:19 +0000)
committerBob Wilson <bob.wilson@apple.com>
Fri, 29 Jan 2010 19:19:08 +0000 (19:19 +0000)
commit3eb4f7e2dd98038f94e45d1c45ccff49e6659c87
tree9ad9e9d474fae169ffb5303be1b8ff1336e6704e
parent01eba397936941f35dfb0995beace7ed03b847f2
Improve isSafeToLoadUnconditionally to recognize that GEPs with constant
indices are safe if the result is known to be within the bounds of the
underlying object.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94829 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/Local.h
lib/Target/README.txt
lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
lib/Transforms/Scalar/GVN.cpp
lib/Transforms/Utils/Local.cpp
test/Transforms/InstCombine/load-select.ll [new file with mode: 0644]