[test] Require asserts in count-visits.ll
authorArthur Eubanks <aeubanks@google.com>
Mon, 30 Jan 2023 19:58:33 +0000 (11:58 -0800)
committerArthur Eubanks <aeubanks@google.com>
Mon, 30 Jan 2023 20:01:02 +0000 (12:01 -0800)
-stats doesn't work in release builds without stats enabled.

Followup to D142853

llvm/test/Other/count-visits.ll

index 48ebb68..3bac1dd 100644 (file)
@@ -1,3 +1,4 @@
+; REQUIRES: asserts
 ; RUN: opt -passes=count-visits -stats 2>&1 -disable-output < %s | FileCheck %s --check-prefix=ONE
 ; RUN: opt -passes='cgscc(count-visits)' -stats 2>&1 -disable-output < %s | FileCheck %s --check-prefix=ONE
 ; RUN: opt -passes='cgscc(count-visits,instcombine)' -stats 2>&1 -disable-output < %s | FileCheck %s --check-prefix=TWO