aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2020-02-03 20:43:07 -0800
committerCraig Topper <craig.topper@gmail.com>2020-02-03 21:01:11 -0800
commit8413116bf10402eef12f556cb9d80b08faeb9890 (patch)
treee63b3fdd407fb6033a23b98ac4c8e576c448998d /llvm/lib/CodeGen/MachineFunction.cpp
parent904d54de9ba9f71e937b24e04ad5941281cd50b7 (diff)
downloadllvm-8413116bf10402eef12f556cb9d80b08faeb9890.zip
llvm-8413116bf10402eef12f556cb9d80b08faeb9890.tar.gz
llvm-8413116bf10402eef12f556cb9d80b08faeb9890.tar.bz2
[X86] Use X86ISD::SUB instead of X86ISD::CMP in some places.
Our normal lowering for ISD::SETCC uses X86ISD::SUB to enable CSE unless the RHS is 0. optimizeCompareInstr called by the peephole pass can turn subs with unused results into cmps to clean this up. This commit makes other places that create X86ISD::CMP have the same behavior.
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions