[PATCH] D158232: [GlobalISel][Mips] Sync G_UADDE and G_USUBE legalization with LegalizeDAG.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 17 16:39:05 PDT 2023
craig.topper created this revision.
craig.topper added reviewers: arsenm, aemerson, atanasyan, dsanders, Petar.Avramovic, eli.friedman.
Herald added subscribers: luismarques, s.egerton, PkmX, jrtc27, simoncook, hiraditya, arichardson, sdardis.
Herald added a project: All.
craig.topper requested review of this revision.
Herald added subscribers: wangpc, wdng.
Herald added a project: LLVM.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D158232
Files:
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158232.551321.patch
Type: text/x-patch
Size: 11654 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230817/f79c84bf/attachment.bin>
More information about the llvm-commits
mailing list