forked from OSchip/llvm-project
[test] Fix tests using -analyze that fail under NPM
Many of these tests don't use the output of -analyze.
This commit is contained in:
parent
75d0e0cd5f
commit
55c4ff9860
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt -basic-aa -print-all-alias-modref-info -aa-eval -analyze < %s 2>&1 | FileCheck %s
|
||||
; RUN: opt -basic-aa -print-all-alias-modref-info -aa-eval < %s 2>&1 | FileCheck %s
|
||||
|
||||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt < %s -analyze -iv-users
|
||||
; RUN: opt < %s -iv-users
|
||||
; This is a regression test against very slow execution...
|
||||
; In bad case it should fail by timeout.
|
||||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128-ni:1"
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
; Call graph construction crash: Not handling indirect calls right
|
||||
;
|
||||
; RUN: opt < %s -analyze -print-callgraph > /dev/null 2>&1
|
||||
; RUN: opt < %s -analyze -print-callgraph -enable-new-pm=0 > /dev/null 2>&1
|
||||
; RUN: opt < %s -passes=print-callgraph > /dev/null 2>&1
|
||||
;
|
||||
|
||||
%FunTy = type i32 (i32)
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
;RUN: opt < %s -analyze -dot-cfg-only 2>/dev/null
|
||||
;RUN: opt < %s -analyze -dot-cfg-only -enable-new-pm=0 2>/dev/null
|
||||
;RUN: opt < %s -passes=dot-cfg-only 2>/dev/null
|
||||
;RUN: opt < %s -analyze -dot-cfg-only \
|
||||
;RUN: -cfg-heat-colors=true -cfg-weights=true 2>/dev/null
|
||||
;RUN: -cfg-heat-colors=true -cfg-weights=true -enable-new-pm=0 2>/dev/null
|
||||
;RUN: opt < %s -analyze -dot-cfg-only \
|
||||
;RUN: -cfg-heat-colors=false -cfg-weights=false 2>/dev/null
|
||||
;RUN: -cfg-heat-colors=false -cfg-weights=false -enable-new-pm=0 2>/dev/null
|
||||
;RUN: opt < %s -analyze -dot-cfg \
|
||||
;RUN: -cfg-heat-colors=true -cfg-weights=true 2>/dev/null
|
||||
;RUN: -cfg-heat-colors=true -cfg-weights=true -enable-new-pm=0 2>/dev/null
|
||||
;RUN: opt < %s -analyze -dot-cfg \
|
||||
;RUN: -cfg-heat-colors=false -cfg-weights=false 2>/dev/null
|
||||
;RUN: -cfg-heat-colors=false -cfg-weights=false -enable-new-pm=0 2>/dev/null
|
||||
;PR 1497
|
||||
|
||||
define void @foo() {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
; RUN: opt < %s -analyze -inline
|
||||
; RUN: opt < %s -analyze -inline -enable-new-pm=0
|
||||
; PR1526
|
||||
; RUN: opt < %s -analyze -indvars
|
||||
; RUN: opt < %s -analyze -indvars -enable-new-pm=0
|
||||
; PR1539
|
||||
define i32 @test1() {
|
||||
ret i32 0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
;RUN: opt < %s -analyze -dot-cfg -cfg-weights -cfg-dot-filename-prefix=%t 2>/dev/null
|
||||
;RUN: opt < %s -dot-cfg -cfg-weights -cfg-dot-filename-prefix=%t 2>/dev/null
|
||||
;RUN: FileCheck %s -input-file=%t.f.dot
|
||||
|
||||
define void @f(i32) {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
;RUN: opt < %s -analyze -dot-cfg -cfg-weights -cfg-raw-weights -cfg-dot-filename-prefix=%t 2>/dev/null
|
||||
;RUN: opt < %s -dot-cfg -cfg-weights -cfg-raw-weights -cfg-dot-filename-prefix=%t 2>/dev/null
|
||||
;RUN: FileCheck %s -input-file=%t.f.dot
|
||||
|
||||
define void @f(i32) {
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
; RUN: rm -rf %t
|
||||
; RUN: mkdir -p %t
|
||||
; RUN: opt < %s -analyze -dot-cfg -cfg-hide-unreachable-paths -cfg-dot-filename-prefix=%t/unreach 2>/dev/null
|
||||
; RUN: opt < %s -dot-cfg -cfg-hide-unreachable-paths -cfg-dot-filename-prefix=%t/unreach 2>/dev/null
|
||||
; RUN: FileCheck %s -input-file=%t/unreach.callee.dot -check-prefix=UNREACH
|
||||
; RUN: opt < %s -analyze -dot-cfg -cfg-hide-deoptimize-paths -cfg-dot-filename-prefix=%t/deopt 2>/dev/null
|
||||
; RUN: opt < %s -dot-cfg -cfg-hide-deoptimize-paths -cfg-dot-filename-prefix=%t/deopt 2>/dev/null
|
||||
; RUN: FileCheck %s -input-file=%t/deopt.callee.dot -check-prefix=DEOPT
|
||||
; RUN: opt < %s -analyze -dot-cfg -cfg-dot-filename-prefix=%t/no-flags 2>/dev/null
|
||||
; RUN: opt < %s -dot-cfg -cfg-dot-filename-prefix=%t/no-flags 2>/dev/null
|
||||
; RUN: FileCheck %s -input-file=%t/no-flags.callee.dot -check-prefix=NO-FLAGS
|
||||
; RUN: opt < %s -analyze -dot-cfg -cfg-hide-unreachable-paths -cfg-hide-deoptimize-paths -cfg-dot-filename-prefix=%t/both-flags 2>/dev/null
|
||||
; RUN: opt < %s -dot-cfg -cfg-hide-unreachable-paths -cfg-hide-deoptimize-paths -cfg-dot-filename-prefix=%t/both-flags 2>/dev/null
|
||||
; RUN: FileCheck %s -input-file=%t/both-flags.callee.dot -check-prefix=BOTH-FLAGS
|
||||
|
||||
declare i8 @llvm.experimental.deoptimize.i8(...)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; REQUIRES: asserts
|
||||
; RUN: opt -debug-counter=predicateinfo-rename-skip=1,predicateinfo-rename-count=1 -print-predicateinfo -analyze < %s 2>&1 | FileCheck %s
|
||||
; RUN: opt -debug-counter=predicateinfo-rename-skip=1,predicateinfo-rename-count=1 -print-predicateinfo < %s 2>&1 | FileCheck %s
|
||||
;; Test that, with debug counters on, we don't rename the first info, only the second
|
||||
define fastcc void @barney() {
|
||||
; CHECK-LABEL: @barney(
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt < %s -analyze -dot-cfg -cfg-heat-colors -cfg-dot-filename-prefix=%t 2>/dev/null
|
||||
; RUN: opt < %s -dot-cfg -cfg-heat-colors -cfg-dot-filename-prefix=%t 2>/dev/null
|
||||
; RUN: FileCheck %s -input-file=%t.f.dot --check-prefixes=CHECK-CFG,CHECK-BOTH
|
||||
; RUN: opt %s -dot-callgraph -callgraph-heat-colors -callgraph-dot-filename-prefix=%t 2>/dev/null
|
||||
; RUN: FileCheck %s -input-file=%t.callgraph.dot --check-prefix=CHECK-BOTH
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt < %s -indvars -loop-deletion -simplifycfg | opt -analyze -loops | FileCheck %s
|
||||
; RUN: opt < %s -indvars -loop-deletion -simplifycfg | opt -analyze -loops -enable-new-pm=0 | FileCheck %s
|
||||
; PR1179
|
||||
|
||||
; CHECK-NOT: Loop Containing
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
; RUN: opt < %s -domfrontier -loop-simplify -domfrontier -verify-dom-info -analyze
|
||||
; RUN: opt < %s -domfrontier -loop-simplify -domfrontier -verify-dom-info
|
||||
|
||||
|
||||
define void @a() nounwind {
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
; RUN: opt -S < %s -analyze -scalar-evolution -loop-simplify -scalar-evolution | FileCheck %s
|
||||
; RUN: opt -S < %s -analyze -scalar-evolution -loop-simplify -scalar-evolution -enable-new-pm=0 | FileCheck %s
|
||||
; RUN: opt -S < %s -passes='print<scalar-evolution>,loop-simplify,print<scalar-evolution>' 2>&1 | FileCheck %s
|
||||
|
||||
; Provide legal integer types.
|
||||
target datalayout = "n8:16:32:64"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; RUN: opt < %s -loop-reduce
|
||||
; RUN: opt < %s -analyze -scalar-evolution
|
||||
; RUN: opt < %s -scalar-evolution
|
||||
; PR 3086
|
||||
|
||||
%struct.Cls = type { i32, i8, [2 x %struct.Cls*], [2 x %struct.Lit*] }
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt -print-predicateinfo -analyze < %s 2>&1 | FileCheck %s
|
||||
; RUN: opt -print-predicateinfo < %s 2>&1 | FileCheck %s
|
||||
|
||||
@a = external global i32 ; <i32*> [#uses=7]
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt -print-predicateinfo -analyze < %s 2>&1 | FileCheck %s
|
||||
; RUN: opt -print-predicateinfo < %s 2>&1 | FileCheck %s
|
||||
|
||||
define i32 @f1(i32 %x) {
|
||||
; CHECK-LABEL: @f1(
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt -print-predicateinfo -analyze < %s 2>&1 | FileCheck %s
|
||||
; RUN: opt -print-predicateinfo < %s 2>&1 | FileCheck %s
|
||||
; Don't insert predicate info for conditions with a single target.
|
||||
@a = global i32 1, align 4
|
||||
@d = common global i32 0, align 4
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
|
||||
; RUN: opt -print-predicateinfo -analyze < %s 2>&1 | FileCheck %s
|
||||
; RUN: opt -print-predicateinfo < %s 2>&1 | FileCheck %s
|
||||
; Don't insert predicate info for conditions with a single target.
|
||||
@a = global i32 6, align 4
|
||||
@c = global i32 -1, align 4
|
||||
|
|
Loading…
Reference in New Issue