Skip to content

Commit c9f9d72

Browse files
Thomas Preud'hommememfrob
authored andcommitted
[test, HardwareLoops] Fix use of var defined in CHECK-NOT
LLVM test Transforms/HardwareLoops/ARM/structure.ll tries to check for the absence of a sequence of instructions with several CHECK-NOT with one of those directives using a variable defined in another. However CHECK-NOT are checked independently so that is using a variable defined in a pattern that should not occur in the input. This commit only checks for the absence of llvm.loop.decrement.i32 which rules out the presence of the whole sequence and does not involve an undefined variable. Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D99591
1 parent 81689b0 commit c9f9d72

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/test/Transforms/HardwareLoops/ARM/structure.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ do.end:
6060
; CHECK: [[CMP:%[^ ]+]] = icmp ne i32 [[LOOP_DEC]], 0
6161
; CHECK: br i1 [[CMP]], label %while.body3.us, label %while.cond1.while.end_crit_edge.us
6262

63-
; CHECK-NOT: [[LOOP_DEC1:%[^ ]+]] = call i1 @llvm.loop.decrement.i32(i32 1)
64-
; CHECK-NOT: br i1 [[LOOP_DEC1]], label %while.cond1.preheader.us, label %while.end7
63+
; CHECK-NOT: %{{[^ ]+}} = call i1 @llvm.loop.decrement.i32(i32 1)
6564

6665
define void @nested(i32* nocapture %A, i32 %N) {
6766
entry:

0 commit comments

Comments
 (0)