[llvm] r293198 - NewGVN: Fix output of pr31578 testcase now that we mark unreachable blocks as unreachable
Daniel Berlin via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 26 10:49:03 PST 2017
Author: dannyb
Date: Thu Jan 26 12:49:03 2017
New Revision: 293198
URL: http://llvm.org/viewvc/llvm-project?rev=293198&view=rev
Log:
NewGVN: Fix output of pr31578 testcase now that we mark unreachable blocks as unreachable
Modified:
llvm/trunk/test/Transforms/NewGVN/pr31758.ll
Modified: llvm/trunk/test/Transforms/NewGVN/pr31758.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/NewGVN/pr31758.ll?rev=293198&r1=293197&r2=293198&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/NewGVN/pr31758.ll (original)
+++ llvm/trunk/test/Transforms/NewGVN/pr31758.ll Thu Jan 26 12:49:03 2017
@@ -1,3 +1,4 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
; RUN: opt -newgvn %s -S -o - | FileCheck %s
%struct.dipsy = type {}
@@ -5,6 +6,17 @@
%struct.patatino = type {}
define void @tinkywinky() {
+; CHECK-LABEL: @tinkywinky(
+; CHECK-NEXT: bb:
+; CHECK-NEXT: br label [[BB90:%.*]]
+; CHECK: bb90:
+; CHECK-NEXT: [[TMP91:%.*]] = bitcast %struct.dipsy** undef to %struct.patatino**
+; CHECK-NEXT: [[TMP92:%.*]] = load %struct.patatino*, %struct.patatino** [[TMP91]], align 8
+; CHECK-NEXT: [[TMP136:%.*]] = load %struct.patatino*, %struct.patatino** [[TMP91]], align 8
+; CHECK-NEXT: br label [[BB90]]
+; CHECK: bb138:
+; CHECK-NEXT: unreachable
+;
bb:
br label %bb90
@@ -22,16 +34,3 @@ bb138:
%tmp139 = getelementptr inbounds %struct.patatino, %struct.patatino* %tmp136
br label %bb138
}
-
-; CHECK-LABEL: tinkywinky
-; CHECK-NEXT: bb:
-; CHECK-NEXT: br label %bb90
-; CHECK-NEXT
-; CHECK: bb90:
-; CHECK: %tmp91 = bitcast %struct.dipsy** undef to %struct.patatino**
-; CHECK-NEXT: %tmp92 = load %struct.patatino*, %struct.patatino** %tmp91, align 8
-; CHECK-NEXT: %tmp136 = load %struct.patatino*, %struct.patatino** %tmp91, align 8
-; CHECK-NEXT: br label %bb90
-; CHECK: bb138:
-; CHECK-NEXT: br label %bb138
-; CHECK-NEXT: }
More information about the llvm-commits
mailing list