[llvm] [X86][APX] Try to replace NDD with NF instructions when optimizeCompareInstr (PR #130488)
Phoebe Wang via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 10 01:32:15 PDT 2025
================
@@ -5352,10 +5352,12 @@ bool X86InstrInfo::optimizeCompareInstr(MachineInstr &CmpInstr, Register SrcReg,
MachineInstr *MI = nullptr;
MachineInstr *Sub = nullptr;
MachineInstr *Movr0Inst = nullptr;
+ SmallVector<MachineInstr *, 4> NDDInsts;
bool NoSignFlag = false;
bool ClearsOverflowFlag = false;
bool ShouldUpdateCC = false;
bool IsSwapped = false;
+ bool HasCF = Subtarget.hasNF();
----------------
phoebewang wrote:
Good catch! done.
https://github.com/llvm/llvm-project/pull/130488
More information about the llvm-commits
mailing list