[PATCH] D125516: [GlobalISel] Handle constant splat in funnel shift combine
Abinav Puthan Purayil via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 12 20:37:14 PDT 2022
abinavpp created this revision.
abinavpp added reviewers: aemerson, arsenm, foad, paquette.
Herald added subscribers: kosarev, kerbowa, hiraditya, rovka, jvesely.
Herald added a project: All.
abinavpp requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.
This change adds the constant splat versions of m_ICst() (by using
getBuildVectorConstantSplat()) and uses it in
matchOrShiftToFunnelShift(). The getBuildVectorConstantSplat() name is
shortened to getIConstantSplatVal() so that the *SExtVal() version would
have a more compact name.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D125516
Files:
llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
llvm/include/llvm/CodeGen/GlobalISel/Utils.h
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
llvm/lib/CodeGen/GlobalISel/Utils.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fsh.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/combine-rot.mir
llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125516.429131.patch
Type: text/x-patch
Size: 10988 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220513/80236087/attachment.bin>
More information about the llvm-commits
mailing list