[llvm] fb84dad - [LV] Update test to use use variables in CHECK lines.

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 4 04:01:19 PST 2022


Author: Florian Hahn
Date: 2022-12-04T11:59:00Z
New Revision: fb84dad58b00d8515f3d8c30fa6fc2dea2f99712

URL: https://github.com/llvm/llvm-project/commit/fb84dad58b00d8515f3d8c30fa6fc2dea2f99712
DIFF: https://github.com/llvm/llvm-project/commit/fb84dad58b00d8515f3d8c30fa6fc2dea2f99712.diff

LOG: [LV] Update test to use use variables in CHECK lines.

This makes the test more robust with respect to value numbering which
will change with future changes.

Added: 
    

Modified: 
    llvm/test/Transforms/LoopVectorize/vplan-sink-scalars-and-merge.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/LoopVectorize/vplan-sink-scalars-and-merge.ll b/llvm/test/Transforms/LoopVectorize/vplan-sink-scalars-and-merge.ll
index 4b918db46ab54..c74032fb1c604 100644
--- a/llvm/test/Transforms/LoopVectorize/vplan-sink-scalars-and-merge.ll
+++ b/llvm/test/Transforms/LoopVectorize/vplan-sink-scalars-and-merge.ll
@@ -574,7 +574,7 @@ define void @pred_cfg3(i32 %k, i32 %j) {
 ; CHECK-NEXT: next.0:
 ; CHECK-NEXT:   EMIT vp<[[NOT:%.+]]> = not ir<%c.0>
 ; CHECK-NEXT:   EMIT vp<[[MASK3:%.+]]> = select vp<[[MASK1]]> vp<[[NOT]]> ir<false>
-; CHECK-NEXT:   BLEND %p = ir<0>/vp<%14> vp<%12>/vp<%9>
+; CHECK-NEXT:   BLEND %p = ir<0>/vp<[[MASK3]]> vp<[[PRED]]>/vp<[[MASK2]]>
 ; CHECK-NEXT: Successor(s): then.1
 ; CHECK-EMPTY:
 ; CHECK-NEXT: then.1:


        


More information about the llvm-commits mailing list