Skip to content

Commit 022d0c6

Browse files
committed
[test] Require asserts in count-visits.ll
-stats doesn't work in release builds without stats enabled. Followup to D142853
1 parent 3b9606b commit 022d0c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/test/Other/count-visits.ll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
; REQUIRES: asserts
12
; RUN: opt -passes=count-visits -stats 2>&1 -disable-output < %s | FileCheck %s --check-prefix=ONE
23
; RUN: opt -passes='cgscc(count-visits)' -stats 2>&1 -disable-output < %s | FileCheck %s --check-prefix=ONE
34
; RUN: opt -passes='cgscc(count-visits,instcombine)' -stats 2>&1 -disable-output < %s | FileCheck %s --check-prefix=TWO

0 commit comments

Comments
 (0)