summaryrefslogtreecommitdiff
path: root/lib/Target/X86/X86ISelDAGToDAG.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
commit87c1e42be7dadaea7c3e00fb7ccbd77633cea37f (patch)
treedda7859621dda1b18b14d7f0e10339a9c9c4288e /lib/Target/X86/X86ISelDAGToDAG.cpp
parenta58d67af29d38fa37c94f59af37db9df75f349be (diff)
downloadllvm-87c1e42be7dadaea7c3e00fb7ccbd77633cea37f.tar.gz
llvm-87c1e42be7dadaea7c3e00fb7ccbd77633cea37f.tar.bz2
llvm-87c1e42be7dadaea7c3e00fb7ccbd77633cea37f.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179899 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86ISelDAGToDAG.cpp')
0 files changed, 0 insertions, 0 deletions