llvm.org GIT mirror llvm / 50b9575
fix a bunch of spurious failures for people whose home directory is sabre. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@81528 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 10 years ago
15 changed file(s) with 16 addition(s) and 20 deletion(s). Raw diff Collapse all Expand all
None ; RUN: opt %s -sccp -loop-deletion -simplifycfg -S | \
1 ; RUN: not grep br
0 ; RUN: opt < %s -sccp -loop-deletion -simplifycfg -S | not grep br
21
32 ; No matter how hard you try, sqrt(1.0) is always 1.0. This allows the
43 ; optimizer to delete this loop.
None ; RUN: opt %s -sccp -dce -simplifycfg -S | \
1 ; RUN: not grep br
0 ; RUN: opt < %s -sccp -dce -simplifycfg -S | not grep br
21
32 define i32 @test(i32 %param) {
43 entry:
0 ; -simplifycfg is not folding blocks if there is a PHI node involved. This
11 ; should be fixed eventually
22
3 ; RUN: opt %s -simplifycfg -S | not grep br
3 ; RUN: opt < %s -simplifycfg -S | not grep br
44
55 define i32 @main(i32 %argc) {
66 ;
None ; RUN: opt %s -simplifycfg -S | not grep br
0 ; RUN: opt < %s -simplifycfg -S | not grep br
11
22 define void @foo(i1 %C, i32* %P) {
33 br i1 %C, label %T, label %F
None ; RUN: opt %s -simplifycfg -S | not grep br
0 ; RUN: opt < %s -simplifycfg -S | not grep br
11
22 define i32 @test(i1 %C, i32 %V1, i32 %V2) {
33 entry:
None ; RUN: opt %s -simplifycfg -S | grep select
1 ; RUN: opt %s -simplifycfg -S | grep br | count 2
0 ; RUN: opt < %s -simplifycfg -S | grep select
1 ; RUN: opt < %s -simplifycfg -S | grep br | count 2
22
33 define i32 @t2(i32 %a, i32 %b, i32 %c) nounwind {
44 entry:
0 ; Test CFG simplify removal of branch instructions...
11 ;
2 ; RUN: opt %s -simplifycfg -S | not grep br
2 ; RUN: opt < %s -simplifycfg -S | not grep br
33
44 define void @test1() {
55 br label %BB1
None ; RUN: opt %s -simplifycfg -S | not grep br
0 ; RUN: opt < %s -simplifycfg -S | not grep br
11
22
33 %llvm.dbg.anchor.type = type { i32, i32 }
None ; RUN: opt %s -simplifycfg -S | not grep br
0 ; RUN: opt < %s -simplifycfg -S | not grep br
11
22 declare void @bar(i32)
33
None ; RUN: opt %s -simplifycfg -S | not grep br
0 ; RUN: opt < %s -simplifycfg -S | not grep br
11
22 define i32 @test1(i1 %C) {
33 entry:
None ; RUN: opt %s -simplifycfg -S | not grep br
0 ; RUN: opt < %s -simplifycfg -S | not grep br
11
22 declare void @foo1()
33
None ; RUN: opt %s -simplifycfg -S | not grep br
1 ; END.
0 ; RUN: opt < %s -simplifycfg -S | not grep br
21
32
43 %llvm.dbg.anchor.type = type { i32, i32 }
None ; RUN: opt %s -simplifycfg -S | not grep br
1 ; END.
0 ; RUN: opt < %s -simplifycfg -S | not grep br
21
32 define i1 @_ZN4llvm11SetCondInst7classofEPKNS_11InstructionE({ i32, i32 }* %I) {
43 entry:
None ; RUN: opt %s -simplifycfg -S | not grep br
0 ; RUN: opt < %s -simplifycfg -S | not grep br
11
22 %llvm.dbg.anchor.type = type { i32, i32 }
33 %llvm.dbg.compile_unit.type = type { i32, { }*, i32, i8*, i8*, i8*, i1, i1, i8* }
None ; RUN: opt %s -simplifycfg -S | not grep br
0 ; RUN: opt < %s -simplifycfg -S | not grep br
11
22 define i1 @qux(i8* %m, i8* %n, i8* %o, i8* %p) nounwind {
33 entry: