[llvm] r221237 - Minimize test case further
David Majnemer
david.majnemer at gmail.com
Mon Nov 3 21:17:59 PST 2014
Author: majnemer
Date: Mon Nov 3 23:17:58 2014
New Revision: 221237
URL: http://llvm.org/viewvc/llvm-project?rev=221237&view=rev
Log:
Minimize test case further
No functional change intended.
Modified:
llvm/trunk/test/Transforms/InstCombine/fold-phi.ll
Modified: llvm/trunk/test/Transforms/InstCombine/fold-phi.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/InstCombine/fold-phi.ll?rev=221237&r1=221236&r2=221237&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/InstCombine/fold-phi.ll (original)
+++ llvm/trunk/test/Transforms/InstCombine/fold-phi.ll Mon Nov 3 23:17:58 2014
@@ -18,29 +18,22 @@ end:
}
; CHECK-LABEL: @pr21377(
-define void @pr21377(i32, i32) {
+define void @pr21377(i32) {
entry:
- br label %while.cond.i
+ br label %while.body
-while.cond.i: ; preds = %while.end.i, %entry
- %g.0.i = phi i64 [ 0, %entry ], [ %phitmp5.i, %while.end.i ]
- br i1 undef, label %fn2.exit, label %while.body.i
-
-while.body.i: ; preds = %while.cond.i
- %conv.i = zext i32 %0 to i64
- %phitmp3.i = or i64 %g.0.i, %conv.i
- br label %while.cond3.i
-
-while.cond3.i: ; preds = %while.cond3.i, %while.body.i
- %g.1.i = phi i64 [ %phitmp3.i, %while.body.i ], [ 0, %while.cond3.i ]
- br i1 undef, label %while.end.i, label %while.cond3.i
-
-while.end.i: ; preds = %while.cond3.i
- %conv.i.i = zext i32 %1 to i64
- %or7.i = or i64 %g.1.i, %conv.i.i
- %phitmp5.i = and i64 %or7.i, 4294967295
- br label %while.cond.i
-
-fn2.exit: ; preds = %while.cond.i
- ret void
+while.body: ; preds = %if.end, %entry
+ %phi1 = phi i64 [ undef, %entry ], [ %or2, %if.end ]
+ %zext = zext i32 %0 to i64
+ br i1 undef, label %if.end, label %if.else
+
+if.else: ; preds = %while.body
+ %or1 = or i64 %phi1, %zext
+ %and = and i64 %or1, 4294967295
+ br label %if.end
+
+if.end: ; preds = %if.else, %while.body
+ %phi2 = phi i64 [ %and, %if.else ], [ undef, %while.body ]
+ %or2 = or i64 %phi2, %zext
+ br label %while.body
}
More information about the llvm-commits
mailing list