summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/LLVMContext.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-10-27 19:16:21 +0000
committerDuncan Sands <baldrick@free.fr>2011-10-27 19:16:21 +0000
commit7cb61e5a0e93948c6e2bf13f34d205beaafb8dc0 (patch)
tree549235a3d77f2fa1bbf942846babfe218480ace9 /llvm/lib/VMCore/LLVMContext.cpp
parent81ddd1866deceb9890c497d188fad1e875d00910 (diff)
downloadbcm5719-llvm-7cb61e5a0e93948c6e2bf13f34d205beaafb8dc0.tar.gz
bcm5719-llvm-7cb61e5a0e93948c6e2bf13f34d205beaafb8dc0.zip
Reapply commit 143028 with a fix: the problem was casting a ConstantExpr Mul
using BinaryOperator (which only works for instructions) when it should have been a cast to OverflowingBinaryOperator (which also works for constants). While there, correct a few other dubious looking uses of BinaryOperator. Thanks to Chad Rosier for the testcase. Original commit message: My super-optimizer noticed that we weren't folding this expression to true: (x *nsw x) sgt 0, where x = (y | 1). This occurs in 464.h264ref. llvm-svn: 143125
Diffstat (limited to 'llvm/lib/VMCore/LLVMContext.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud