| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| ; RUN: opt < %s -simplifycfg -disable-output | ||
|
|
||
| define void @symhash_add() { | ||
| entry: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| ; RUN: opt < %s -simplifycfg -disable-output | ||
| ; END. | ||
|
|
||
| define void @main() { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| ; RUN: opt < %s -gvn -simplifycfg -disable-output | ||
| ; PR867 | ||
|
|
||
| target datalayout = "E-p:32:32" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| ; RUN: opt < %s -simplifycfg -adce -S | \ | ||
| ; RUN: not grep "call void @f1" | ||
| ; END. | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| ; RUN: opt %s -debugify -simplifycfg -S | FileCheck %s | ||
| ; Tests Bug 37966 | ||
|
|
||
| define void @bar(i32 %aa) { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py | ||
| ; RUN: opt < %s -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -simplifycfg-dup-ret -S | FileCheck %s | ||
|
|
||
| declare void @bar() | ||
| declare void @baz() | ||
|
|
||
| define void @foo(i1 %c) { | ||
| ; CHECK-LABEL: @foo( | ||
| ; CHECK-NEXT: entry: | ||
| ; CHECK-NEXT: br i1 [[C:%.*]], label [[TRUE:%.*]], label [[FALSE:%.*]] | ||
| ; CHECK: true: | ||
| ; CHECK-NEXT: call void @bar() | ||
| ; CHECK-NEXT: ret void | ||
| ; CHECK: false: | ||
| ; CHECK-NEXT: call void @baz() | ||
| ; CHECK-NEXT: ret void | ||
| ; | ||
| entry: | ||
| br i1 %c, label %true, label %false | ||
|
|
||
| true: | ||
| call void @bar() | ||
| br label %end | ||
|
|
||
| false: | ||
| call void @baz() | ||
| br label %end | ||
|
|
||
| end: | ||
| ret void | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| ; RUN: opt < %s -simplifycfg -S -hoist-common-insts=true | not grep br | ||
|
|
||
| declare void @bar(i32) | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| ; RUN: opt -S -simplifycfg < %s | FileCheck %s | ||
|
|
||
| ; SimplifyCFG should eliminate redundant indirectbr edges. | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| ; RUN: opt < %s -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -S | FileCheck %s | ||
|
|
||
| declare void @bar() | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py | ||
| ; RUN: opt < %s -simplifycfg -simplifycfg-require-and-preserve-domtree=1 -simplifycfg-dup-ret -S | FileCheck %s | ||
|
|
||
| declare void @bar() | ||
| declare void @baz() | ||
|
|
||
| define i8 @foo(i1 %c, i8 %v0, i8 %v1) { | ||
| ; CHECK-LABEL: @foo( | ||
| ; CHECK-NEXT: entry: | ||
| ; CHECK-NEXT: [[SPEC_SELECT:%.*]] = select i1 [[C:%.*]], i8 [[V0:%.*]], i8 [[V1:%.*]] | ||
| ; CHECK-NEXT: ret i8 [[SPEC_SELECT]] | ||
| ; | ||
| entry: | ||
| br i1 %c, label %true, label %false | ||
|
|
||
| true: | ||
| ret i8 %v0 | ||
|
|
||
| false: | ||
| ret i8 %v1 | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| ; RUN: opt -S -simplifycfg -hoist-common-insts=true < %s | FileCheck %s | ||
|
|
||
| declare void @personality() | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| ; RUN: opt < %s -simplifycfg -disable-output | ||
|
|
||
| define void @NewExtractNames() { | ||
| entry: | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| ; RUN: opt < %s -simplifycfg -S | FileCheck %s | ||
|
|
||
| ; int foo1_with_default(int a) { | ||
| ; switch(a) { | ||
|
|
||