[llvm] [X86][CodeGen] Transform NDD SUB to CMP if dest reg is dead (PR #79135)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 23 05:40:27 PST 2024
================
@@ -5130,39 +5162,51 @@ bool X86InstrInfo::optimizeCompareInstr(MachineInstr &CmpInstr, Register SrcReg,
default:
llvm_unreachable("Unreachable!");
case X86::SUB64rm:
+ case X86::SUB64rm_ND:
NewOpcode = X86::CMP64rm;
----------------
phoebewang wrote:
Will it be a problem if `SUB64rm_ND` is assigned with EGPR reigsters?
https://github.com/llvm/llvm-project/pull/79135
More information about the llvm-commits
mailing list