This modifies the G_UADDE to a version that looks shorter on
Mips and RISC-V when feeding the equivalent IR to SelectionDAG.
This also removes the boolean select from G_USUBE.
Comments taken from LegalizeDAG and tweaked.
Paths
| Differential D158232
[GlobalISel][Mips] Sync G_UADDE and G_USUBE legalization with LegalizeDAG. ClosedPublic Authored by craig.topper on Aug 17 2023, 4:39 PM.
Details Summary This modifies the G_UADDE to a version that looks shorter on Comments taken from LegalizeDAG and tweaked.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 17 2023, 5:03 PM This revision was landed with ongoing or failed builds.Aug 17 2023, 8:37 PM Closed by commit rGc6dee6982f73: [GlobalISel][Mips] Sync G_UADDE and G_USUBE legalization with LegalizeDAG. (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 551361 llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/test/CodeGen/Mips/GlobalISel/legalizer/add.mir
llvm/test/CodeGen/Mips/GlobalISel/legalizer/sub.mir
llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/add.ll
llvm/test/CodeGen/Mips/GlobalISel/llvm-ir/sub.ll
|