aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/TargetLowering.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
commite1196d6d3efabfc58103acc9076ad946d3574a04 (patch)
treecf179d0e8850608a3ca59d46b4729c512df0d6cf /lib/CodeGen/SelectionDAG/TargetLowering.cpp
parent4a69bade2385022ca776edc22150f3b750cdf23c (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60275 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
0 files changed, 0 insertions, 0 deletions