Fix ConstantFold's folding of icmp instructions to recognize that,
authorDan Gohman <dan433584@gmail.com>
Thu, 31 Jan 2013 00:01:45 +0000 (00:01 +0000)
committerDan Gohman <dan433584@gmail.com>
Thu, 31 Jan 2013 00:01:45 +0000 (00:01 +0000)
commitd363ae52995059906d99f7588f47bf891e7db485
tree5422d9606820e707f04d8569a5097619f31c86a1
parent69f60e7c4a77866b3d0a5907e4955baa05216a20
Fix ConstantFold's folding of icmp instructions to recognize that,
for example, a one-past-the-end pointer from one global variable may
be equal to the base pointer of another global variable.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173995 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/ConstantFold.cpp
test/Assembler/ConstantExprNoFold.ll [new file with mode: 0644]