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)
commit1de76773bc3b0ac640d03104680659b99dab18cf
tree1b4adbba86e3e590a7845c3cfa8cf196119ebc9b
parent5cae894a131692b9e3e058c36f7d81ef701d49f3
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.

llvm-svn: 188507
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/test/Transforms/InstCombine/getelementptr.ll
llvm/test/Transforms/InstCombine/load-cmp.ll