[llvm] 998c0ef - [JumpThreading] Update test freeze.ll; NFC
Juneyoung Lee via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 4 04:28:15 PDT 2020
Author: Juneyoung Lee
Date: 2020-08-04T20:27:54+09:00
New Revision: 998c0efee0e6d6909fdee579e6d2694babd99c0f
URL: https://github.com/llvm/llvm-project/commit/998c0efee0e6d6909fdee579e6d2694babd99c0f
DIFF: https://github.com/llvm/llvm-project/commit/998c0efee0e6d6909fdee579e6d2694babd99c0f.diff
LOG: [JumpThreading] Update test freeze.ll; NFC
Added:
Modified:
llvm/test/Transforms/JumpThreading/freeze.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/JumpThreading/freeze.ll b/llvm/test/Transforms/JumpThreading/freeze.ll
index 99fa058ade81..650cbeb2205d 100644
--- a/llvm/test/Transforms/JumpThreading/freeze.ll
+++ b/llvm/test/Transforms/JumpThreading/freeze.ll
@@ -42,20 +42,14 @@ F2:
define i32 @test1_cast(i1 %cond) {
; CHECK-LABEL: @test1_cast(
-; CHECK-NEXT: br i1 [[COND:%.*]], label [[MERGE_THREAD:%.*]], label [[MERGE:%.*]]
-; CHECK: Merge.thread:
-; CHECK-NEXT: [[V1:%.*]] = call i32 @f1()
-; CHECK-NEXT: br label [[T2:%.*]]
-; CHECK: Merge:
-; CHECK-NEXT: [[V2:%.*]] = call i32 @f2()
-; CHECK-NEXT: [[A:%.*]] = trunc i32 0 to i1
-; CHECK-NEXT: [[A_FR:%.*]] = freeze i1 [[A]]
-; CHECK-NEXT: br i1 [[A_FR]], label [[T2]], label [[F2:%.*]]
+; CHECK-NEXT: br i1 [[COND:%.*]], label [[T2:%.*]], label [[F2:%.*]]
; CHECK: T2:
-; CHECK-NEXT: [[B5:%.*]] = phi i32 [ [[V1]], [[MERGE_THREAD]] ], [ [[V2]], [[MERGE]] ]
+; CHECK-NEXT: [[V1:%.*]] = call i32 @f1()
; CHECK-NEXT: call void @f3()
-; CHECK-NEXT: ret i32 [[B5]]
+; CHECK-NEXT: ret i32 [[V1]]
; CHECK: F2:
+; CHECK-NEXT: [[V2:%.*]] = call i32 @f2()
+; CHECK-NEXT: [[A:%.*]] = trunc i32 0 to i1
; CHECK-NEXT: ret i32 [[V2]]
;
br i1 %cond, label %T1, label %F1
More information about the llvm-commits
mailing list