[llvm] [PowerPC] extend smaller splats into bigger splats (with fix) (PR #142194)
zhijian lin via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 6 07:27:23 PDT 2025
================
@@ -9664,7 +9664,24 @@ SDValue PPCTargetLowering::LowerBUILD_VECTOR(SDValue Op,
}
}
- if (!BVNIsConstantSplat || SplatBitSize > 32) {
+ bool IsSplat64 = false;
+ uint64_t SplatBits = 0;
----------------
diggerlin wrote:
nit: we can put the `uint64_t SplatBits = 0;` inside the `if (BVNIsConstantSplat && SplatBitSize <= 64) {`
https://github.com/llvm/llvm-project/pull/142194
More information about the llvm-commits
mailing list