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)
commit6a61fccb96a693fef6f4e88cf597d403c3ccc8a4
treedbf6a2135815dc6d1ae43e5910ae156c04186adb
parent606acb7c853fc09de94584b19d320db6da20e769
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.

llvm-svn: 173995
llvm/lib/IR/ConstantFold.cpp
llvm/test/Assembler/ConstantExprNoFold.ll [new file with mode: 0644]