Skip to content

Commit

Permalink
Revert new add/sub narrowing conditional to avoid test failures for now
Browse files Browse the repository at this point in the history
  • Loading branch information
calc84maniac committed Nov 19, 2024
1 parent 5b150a8 commit 9257fd0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions llvm/lib/Target/Z80/GISel/Z80LegalizerInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,8 @@ Z80LegalizerInfo::legalizeAddSub(LegalizerHelper &Helper, MachineInstr &MI,
}
if (LegalSize)
return LegalizerHelper::Legalized;
if ((!F.hasOptSize() || MI.getOpcode() == G_ADD) &&
Size == (Subtarget.is24Bit() ? 48 : 32))
return Helper.narrowScalar(MI, 0, LLT::scalar(Size / 2));
if (Subtarget.is24Bit() && Size == 48)
return Helper.narrowScalar(MI, 0, LLT::scalar(24));
return Helper.libcall(MI, LocObserver);
}

Expand Down

0 comments on commit 9257fd0

Please sign in to comment.