summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-04-19 22:08:38 +0000
committerHal Finkel <hfinkel@anl.gov>2013-04-19 22:08:38 +0000
commite632239d7ba0d3b673fee782134d360189e83f35 (patch)
treec32ad641937721fa20246b8ad3e35364a18901f8 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent8ac6170341031aaf524aaaa7fbd9cab2be82f5f6 (diff)
downloadbcm5719-llvm-e632239d7ba0d3b673fee782134d360189e83f35.tar.gz
bcm5719-llvm-e632239d7ba0d3b673fee782134d360189e83f35.zip
Fix PPC optimizeCompareInstr swapped-sub argument handling
When matching a compare with a subtract where the arguments of the compare are swapped w.r.t. the arguments of the subtract, we need to negate the predicates (or CR bit indices) of the users. This, however, is not the same as inverting the predicate (negating LT -> GT, but inverting LT -> GE, for example). The ARM backend seems to do this correctly, but when I adapted the code for the PPC backend, I introduced an error in this logic. Comparison optimization is now enabled again by default. llvm-svn: 179899
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud