[PATCH] D96013: GlobalISel: Try to combine G_[SU]DIV and G_[SU]REM
Christudasan Devadasan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 4 03:43:00 PST 2021
cdevadas created this revision.
cdevadas added reviewers: aemerson, paquette, arsenm.
Herald added subscribers: dexonsmith, kerbowa, hiraditya, rovka, nhaehnle, jvesely.
cdevadas requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
It is good to have a combined `divrem` instruction when the
`div` and `rem` are computed from identical input operands.
Some targets can lower them through a single expansion that
computes both division and remainder. It effectively reduces
the number of instructions than individually expanding them.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D96013
Files:
llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
llvm/include/llvm/Support/TargetOpcodes.def
llvm/include/llvm/Target/GenericOpcodes.td
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp
llvm/test/CodeGen/AArch64/GlobalISel/legalizer-info-validation.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/prelegalizer-combiner-divrem.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D96013.321374.patch
Type: text/x-patch
Size: 10316 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210204/b7fddbfc/attachment.bin>
More information about the llvm-commits
mailing list