summaryrefslogtreecommitdiff
path: root/llvm/unittests/Transforms/Vectorize/VPlanTest.cpp
diff options
context:
space:
mode:
authorFlorian Hahn <flo@fhahn.com>2025-08-21 18:58:10 +0100
committerGitHub <noreply@github.com>2025-08-21 18:58:10 +0100
commite41aaf5a64aa0490031598779560f89fc86c21ec (patch)
tree017bbeb79f05597653f379cad57e81db21da6a7b /llvm/unittests/Transforms/Vectorize/VPlanTest.cpp
parent21cca5ea9d13ff791a7982a2a8edb4a56ef4674e (diff)
[VPlan] Use VPIRMetadata for VPInterleaveRecipe. (#153084)
Use VPIRMetadata for VPInterleaveRecipe to preserve noalias metadata added by versioning. This still uses InterleaveGroup's logic to preserve existing metadata from IR. This can be migrated separately. Fixes https://github.com/llvm/llvm-project/issues/153006. PR: https://github.com/llvm/llvm-project/pull/153084
Diffstat (limited to 'llvm/unittests/Transforms/Vectorize/VPlanTest.cpp')
-rw-r--r--llvm/unittests/Transforms/Vectorize/VPlanTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Transforms/Vectorize/VPlanTest.cpp b/llvm/unittests/Transforms/Vectorize/VPlanTest.cpp
index 94b74d2117e1..db64c755d005 100644
--- a/llvm/unittests/Transforms/Vectorize/VPlanTest.cpp
+++ b/llvm/unittests/Transforms/Vectorize/VPlanTest.cpp
@@ -1088,7 +1088,7 @@ TEST_F(VPRecipeTest, CastVPInterleaveRecipeToVPUser) {
VPValue *Addr = Plan.getOrAddLiveIn(ConstantInt::get(Int32, 1));
VPValue *Mask = Plan.getOrAddLiveIn(ConstantInt::get(Int32, 2));
InterleaveGroup<Instruction> IG(4, false, Align(4));
- VPInterleaveRecipe Recipe(&IG, Addr, {}, Mask, false, DebugLoc());
+ VPInterleaveRecipe Recipe(&IG, Addr, {}, Mask, false, {}, DebugLoc());
EXPECT_TRUE(isa<VPUser>(&Recipe));
VPRecipeBase *BaseR = &Recipe;
EXPECT_TRUE(isa<VPUser>(BaseR));