[llvm] [LegalizeTypes][RISCV] Use SPLAT_VECTOR_PARTS to legalize splat BUILD_VECTOR (PR #107290)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 4 14:59:45 PDT 2024
================
@@ -376,6 +376,15 @@ SDValue DAGTypeLegalizer::ExpandOp_BUILD_VECTOR(SDNode *N) {
assert(OldVT == VecVT.getVectorElementType() &&
"BUILD_VECTOR operand type doesn't match vector element type!");
+ if (VecVT.isInteger() && TLI.isOperationLegal(ISD::SPLAT_VECTOR, VecVT) &&
----------------
topperc wrote:
I think we don't default SPLAT_VECTOR_PARTS to Expand so it started crashing other targets.
https://github.com/llvm/llvm-project/pull/107290
More information about the llvm-commits
mailing list