Don't do FoldCmpLoadFromIndexedGlobal for non inbounds GEPs
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 15 Aug 2013 23:11:07 +0000 (23:11 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 15 Aug 2013 23:11:07 +0000 (23:11 +0000)
commita630cb032cc09aaec92fa4ce26891abfa7fa1348
tree5ee5d6a24975233adba202a8ce8d329f81662381
parentc34540aa861105d515ed73eb2ae614d9453016b6
Don't do FoldCmpLoadFromIndexedGlobal for non inbounds GEPs

This path wasn't tested before without a datalayout,
so add some more tests and re-run with and without one.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188507 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
test/Transforms/InstCombine/getelementptr.ll
test/Transforms/InstCombine/load-cmp.ll