summaryrefslogtreecommitdiff
path: root/test/Transforms/GVN/2008-07-02-Unreachable.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/GVN/2008-07-02-Unreachable.ll')
-rw-r--r--test/Transforms/GVN/2008-07-02-Unreachable.ll8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/Transforms/GVN/2008-07-02-Unreachable.ll b/test/Transforms/GVN/2008-07-02-Unreachable.ll
index ce83fa4e4b..4f07868a1c 100644
--- a/test/Transforms/GVN/2008-07-02-Unreachable.ll
+++ b/test/Transforms/GVN/2008-07-02-Unreachable.ll
@@ -3,11 +3,10 @@
@g_3 = external global i8 ; <i8*> [#uses=2]
-define i8 @func_1(i32 %x, i32 %y) nounwind {
+define i8 @func_1() nounwind {
entry:
%A = alloca i8
- %cmp = icmp eq i32 %x, %y
- br i1 %cmp, label %ifelse, label %ifthen
+ br i1 false, label %ifelse, label %ifthen
ifthen: ; preds = %entry
br label %ifend
@@ -15,6 +14,9 @@ ifthen: ; preds = %entry
ifelse: ; preds = %entry
%tmp3 = load i8* @g_3 ; <i8> [#uses=0]
store i8 %tmp3, i8* %A
+ br label %forcond.thread
+
+forcond.thread: ; preds = %ifelse
br label %afterfor
forcond: ; preds = %forinc