[PATCH] D138067: GlobalISel: Try to fold G_SEXT_INREG to G_AND with mask
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 15 14:55:04 PST 2022
arsenm created this revision.
arsenm added reviewers: paquette, aemerson, Pierre-vh, foad, dsanders, Petar.Avramovic.
Herald added subscribers: kosarev, kerbowa, jvesely.
Herald added a project: All.
arsenm requested review of this revision.
Herald added a subscriber: wdng.
Herald added a project: LLVM.
Copies the same transform from the DAG. Helps eliminate some codegen
diffs to allowed shared checks in a future change.
Not sure if apply supports anything better than C++ fragments for
the result. It's also not really reasonable that every combine has
to set the default insertion point.
https://reviews.llvm.org/D138067
Files:
llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
llvm/include/llvm/Target/GlobalISel/Combine.td
llvm/test/CodeGen/AMDGPU/GlobalISel/postlegalizercombiner-sext_inreg-to-and.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138067.475593.patch
Type: text/x-patch
Size: 4312 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221115/39e0529b/attachment.bin>
More information about the llvm-commits
mailing list