Don't fold "ptrtoint GV to bool" since this should be doing a truncate not
authorReid Spencer <rspencer@reidspencer.com>
Fri, 1 Dec 2006 03:56:30 +0000 (03:56 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Fri, 1 Dec 2006 03:56:30 +0000 (03:56 +0000)
commitb8611ec8bcf4a24042824f5ddc9858e32c56dc2e
treeda8cd03458d052f757758a3d5cb6321ef0c6ba1a
parent1a3d05dc7385a336a867748f3bdca3a2f1110930
Don't fold "ptrtoint GV to bool" since this should be doing a truncate not
a comparison against zero. Instead fold setne(GV,null) and seteq(GV,null)
to ConstantBool::True or ConstantBool::False, respectively.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32060 91177308-0d34-0410-b5e6-96231b3b80d8
lib/VMCore/ConstantFold.cpp