Similar to the current "Trunc/BuildVector" folding - which folds low element extracts of BuildVectors, folds hi element extracts done using bitshifts.
For D134354
Paths
| Differential D135148
[GISel] Add Trunc/Lshr/BuildVector Folding ClosedPublic Authored by Pierre-vh on Oct 4 2022, 4:57 AM.
Details
Summary Similar to the current "Trunc/BuildVector" folding - which folds low element extracts of BuildVectors, folds hi element extracts done using bitshifts. For D134354
Diff Detail
Event TimelinePierre-vh added a child revision: D134354: [AMDGPU][GlobalISel] Support mad/fma_mix selection.Oct 4 2022, 4:58 AM
Pierre-vh retitled this revision from [GISel] Handle hi element extract in `matchTruncBuildVectorFold` to [GISel] Add Trunc/Shlr/BuildVector Folding.Oct 5 2022, 12:27 AM This revision is now accepted and ready to land.Oct 5 2022, 8:07 AM Pierre-vh retitled this revision from [GISel] Add Trunc/Shlr/BuildVector Folding to [GISel] Add Trunc/Lshr/BuildVector Folding.Oct 6 2022, 12:00 AM This revision was landed with ongoing or failed builds.Oct 7 2022, 1:44 AM Closed by commit rG36c3833783f0: [GISel] Add Trunc/Lshr/BuildVector Folding (authored by Pierre-vh). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 466003 llvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
llvm/include/llvm/Target/GlobalISel/Combine.td
llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
llvm/test/CodeGen/AArch64/fold-global-offsets.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/postlegalizer-combiner-trunc-bitcast-buildvector.mir
|
s/shlr/lshr/?