[llvm] [AArch64][DAGcombine] Combine (zext i8 * 0x010101...) to NEON dup (PR #194246)
Paul Walker via llvm-commits
llvm-commits at lists.llvm.org
Fri May 1 09:54:54 PDT 2026
================
@@ -20346,6 +20346,56 @@ static SDValue performVectorExtCombine(SDNode *N, SelectionDAG &DAG) {
return SDValue();
}
+// Combine (zext i8 to iN) * 0x010101... into a NEON byte broadcast using dup.
+static SDValue performMulBroadcastCombine(SDNode *N, SelectionDAG &DAG,
+ TargetLowering::DAGCombinerInfo &DCI,
+ const AArch64Subtarget *Subtarget) {
+ EVT MulVT = N->getValueType(0);
+ if (!MulVT.isInteger() || MulVT.isVector() || !Subtarget->hasNEON())
----------------
paulwalker-arm wrote:
```suggestion
if (!MulVT.isScalarInteger() || !Subtarget->isNeonAvailable())
```
https://github.com/llvm/llvm-project/pull/194246
More information about the llvm-commits
mailing list