[llvm] r317805 - [Reassociate] add check lines; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 9 08:25:35 PST 2017
Author: spatel
Date: Thu Nov 9 08:25:35 2017
New Revision: 317805
URL: http://llvm.org/viewvc/llvm-project?rev=317805&view=rev
Log:
[Reassociate] add check lines; NFC
Modified:
llvm/trunk/test/Transforms/Reassociate/add_across_block_crash.ll
Modified: llvm/trunk/test/Transforms/Reassociate/add_across_block_crash.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/Reassociate/add_across_block_crash.ll?rev=317805&r1=317804&r2=317805&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/Reassociate/add_across_block_crash.ll (original)
+++ llvm/trunk/test/Transforms/Reassociate/add_across_block_crash.ll Thu Nov 9 08:25:35 2017
@@ -1,8 +1,17 @@
; RUN: opt < %s -reassociate -S | FileCheck %s
-; CHECK-LABEL: main
+
; This test is to make sure while processing a block, uses of instructions
; from a different basic block don't get added to be re-optimized
+
define void @main() {
+; CHECK-LABEL: @main(
+; CHECK-NEXT: entry:
+; CHECK-NEXT: br i1 undef, label %bb1, label %bb2
+; CHECK: bb1:
+; CHECK-NEXT: ret void
+; CHECK: bb2:
+; CHECK-NEXT: ret void
+;
entry:
%0 = fadd fast float undef, undef
br i1 undef, label %bb1, label %bb2
@@ -18,3 +27,4 @@ bb1:
bb2:
ret void
}
+
More information about the llvm-commits
mailing list