diff --git a/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp b/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp --- a/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp +++ b/mlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp @@ -875,6 +875,8 @@ if (!resultType || resultType.getRank() != 1) return failure(); + SplatOp::Adaptor adaptor(operands); + // First insert it into an undef vector so we can shuffle it. auto vectorType = typeConverter->convertType(splatOp.getType()); Value undef = rewriter.create(splatOp.getLoc(), vectorType); @@ -884,7 +886,7 @@ rewriter.getZeroAttr(rewriter.getIntegerType(32))); auto v = rewriter.create( - splatOp.getLoc(), vectorType, undef, splatOp.getOperand(), zero); + splatOp.getLoc(), vectorType, undef, adaptor.input(), zero); int64_t width = splatOp.getType().cast().getDimSize(0); SmallVector zeroValues(width, 0);