[llvm] [AArch64][SDAG] Detect non-zeroes in truncating buildvectors in fshl lowering (PR #123597)
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 20 04:45:30 PST 2025
================
@@ -382,16 +382,16 @@ bool ISD::matchUnaryPredicateImpl(SDValue Op,
}
auto *Cst = dyn_cast<ConstNodeType>(Op.getOperand(i));
- if (!Cst || Cst->getValueType(0) != SVT || !Match(Cst))
+ if (!Cst || (!AllowTrunc && Cst->getValueType(0) != SVT) || !Match(Cst))
----------------
RKSimon wrote:
Can you tweak the test so AllowTrunc only accepts larger/matching element types?
https://github.com/llvm/llvm-project/pull/123597
More information about the llvm-commits
mailing list