Skip to content

Commit 1f8726e

Browse files
Rebase
1 parent 7987c79 commit 1f8726e

File tree

4 files changed

+80
-78
lines changed

4 files changed

+80
-78
lines changed

llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,9 @@ Type *VPTypeAnalysis::inferScalarType(const VPValue *V) {
263263
VPWidenCanonicalIVRecipe>([this](const VPRecipeBase *R) {
264264
return inferScalarType(R->getOperand(0));
265265
})
266-
.Case<VPBlendRecipe, VPInstruction, VPWidenRecipe, VPReplicateRecipe,
267-
VPWidenCallRecipe, VPWidenMemoryRecipe, VPWidenSelectRecipe,
268-
VPWidenEVLRecipe>(
266+
.Case<VPBlendRecipe, VPInstruction, VPWidenRecipe, VPWidenEVLRecipe,
267+
VPReplicateRecipe, VPWidenCallRecipe, VPWidenMemoryRecipe,
268+
VPWidenSelectRecipe>(
269269
[this](const auto *R) { return inferScalarTypeForRecipe(R); })
270270
.Case<VPInterleaveRecipe>([V](const VPInterleaveRecipe *R) {
271271
// TODO: Use info from interleave group.

llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,6 +1295,8 @@ void VPWidenEVLRecipe::execute(VPTransformState &State) {
12951295
Builder.setMask(Mask).setEVL(EVLArg);
12961296
Value *VPInst =
12971297
Builder.createVectorInstruction(Opcode, Ops[0]->getType(), Ops, "vp.op");
1298+
// Currently vp-intrinsics only accept FMF flags.
1299+
// TODO: Enable other flags when support is added.
12981300
if (isa<FPMathOperator>(VPInst))
12991301
setFlags(cast<Instruction>(VPInst));
13001302

llvm/test/Transforms/LoopVectorize/RISCV/vectorize-force-tail-with-evl-masked-loadstore.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ define void @masked_loadstore(ptr noalias %a, ptr noalias %b, i64 %n) {
3838
; IF-EVL-NEXT: [[TMP11:%.*]] = add i64 [[EVL_BASED_IV]], 0
3939
; IF-EVL-NEXT: [[BROADCAST_SPLATINSERT:%.*]] = insertelement <vscale x 4 x i64> poison, i64 [[EVL_BASED_IV]], i64 0
4040
; IF-EVL-NEXT: [[BROADCAST_SPLAT:%.*]] = shufflevector <vscale x 4 x i64> [[BROADCAST_SPLATINSERT]], <vscale x 4 x i64> poison, <vscale x 4 x i32> zeroinitializer
41-
; IF-EVL-NEXT: [[TMP12:%.*]] = call <vscale x 4 x i64> @llvm.experimental.stepvector.nxv4i64()
41+
; IF-EVL-NEXT: [[TMP12:%.*]] = call <vscale x 4 x i64> @llvm.stepvector.nxv4i64()
4242
; IF-EVL-NEXT: [[TMP13:%.*]] = add <vscale x 4 x i64> zeroinitializer, [[TMP12]]
4343
; IF-EVL-NEXT: [[VEC_IV:%.*]] = add <vscale x 4 x i64> [[BROADCAST_SPLAT]], [[TMP13]]
4444
; IF-EVL-NEXT: [[TMP14:%.*]] = icmp ule <vscale x 4 x i64> [[VEC_IV]], [[BROADCAST_SPLAT2]]

0 commit comments

Comments
 (0)