File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,7 @@ bool X86FixupInstTuningPass::processInstruction(
81
81
MachineInstr &MI = *I;
82
82
unsigned Opc = MI.getOpcode ();
83
83
unsigned NumOperands = MI.getDesc ().getNumOperands ();
84
+ bool OptSize = MF.getFunction ().hasOptSize ();
84
85
85
86
auto GetInstTput = [&](unsigned Opcode) -> std::optional<double > {
86
87
// We already checked that SchedModel exists in `NewOpcPreferable`.
@@ -226,8 +227,7 @@ bool X86FixupInstTuningPass::processInstruction(
226
227
unsigned MovImm) -> bool {
227
228
if ((MI.getOperand (NumOperands - 1 ).getImm () & Mask) != MovImm)
228
229
return false ;
229
- bool Force = MF.getFunction ().hasOptSize ();
230
- if (!Force && !NewOpcPreferable (MovOpc))
230
+ if (!OptSize && !NewOpcPreferable (MovOpc))
231
231
return false ;
232
232
MI.setDesc (TII->get (MovOpc));
233
233
MI.removeOperand (NumOperands - 1 );
You can’t perform that action at this time.
0 commit comments