summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/TargetInstrInfoImpl.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-11-30 03:42:12 +0000
committerBill Wendling <isanbard@gmail.com>2008-11-30 03:42:12 +0000
commit70635adea36679b98bbc87f196548ed42a244a29 (patch)
treefe7af1cafc273d136789464171d779f9a5062fe3 /llvm/lib/CodeGen/TargetInstrInfoImpl.cpp
parent441042796d90a9319804efa16586a84786801525 (diff)
downloadbcm5719-llvm-70635adea36679b98bbc87f196548ed42a244a29.tar.gz
bcm5719-llvm-70635adea36679b98bbc87f196548ed42a244a29.zip
Instcombine was illegally transforming -X/C into X/-C when either X or C
overflowed on negation. This commit checks to make sure that neithe C nor X overflows. This requires that the RHS of X (a subtract instruction) be a constant integer. llvm-svn: 60275
Diffstat (limited to 'llvm/lib/CodeGen/TargetInstrInfoImpl.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud