[all-commits] [llvm/llvm-project] bc5dbb: [GlobalISel] Add matchers for constant splat.
Abinav Puthan Purayil via All-commits
all-commits at lists.llvm.org
Tue Nov 30 02:00:05 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bc5dbb0baee357649c3132254ca6766b5cd6f15b
https://github.com/llvm/llvm-project/commit/bc5dbb0baee357649c3132254ca6766b5cd6f15b
Author: Abinav Puthan Purayil <abinav.puthanpurayil at amd.com>
Date: 2021-11-30 (Tue, 30 Nov 2021)
Changed paths:
M llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
M llvm/include/llvm/CodeGen/GlobalISel/Utils.h
M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
M llvm/lib/CodeGen/GlobalISel/Utils.cpp
M llvm/test/CodeGen/AMDGPU/GlobalISel/combine-fsh.mir
M llvm/test/CodeGen/AMDGPU/GlobalISel/combine-rot.mir
M llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp
Log Message:
-----------
[GlobalISel] Add matchers for constant splat.
This change exposes isBuildVectorConstantSplat() to the llvm namespace
and uses it to implement the constant splat versions of
m_SpecificICst().
CombinerHelper::matchOrShiftToFunnelShift() can now work with vector
types and CombinerHelper::matchMulOBy2()'s match for a constant splat is
simplified.
Differential Revision: https://reviews.llvm.org/D114625
More information about the All-commits
mailing list