[llvm-commits] [llvm] r83750 - in /llvm/trunk/test/Transforms/JumpThreading: 2008-11-27-EntryMunge.ll 2008-11-28-InfLoop.ll 2009-01-19-InfSwitchLoop.ll basic.ll compare.ll thread-loads.ll
Chris Lattner
sabre at nondot.org
Sat Oct 10 20:54:21 PDT 2009
Author: lattner
Date: Sat Oct 10 22:54:21 2009
New Revision: 83750
URL: http://llvm.org/viewvc/llvm-project?rev=83750&view=rev
Log:
simplify some run lines, convert a test to filecheck.
Modified:
llvm/trunk/test/Transforms/JumpThreading/2008-11-27-EntryMunge.ll
llvm/trunk/test/Transforms/JumpThreading/2008-11-28-InfLoop.ll
llvm/trunk/test/Transforms/JumpThreading/2009-01-19-InfSwitchLoop.ll
llvm/trunk/test/Transforms/JumpThreading/basic.ll
llvm/trunk/test/Transforms/JumpThreading/compare.ll
llvm/trunk/test/Transforms/JumpThreading/thread-loads.ll
Modified: llvm/trunk/test/Transforms/JumpThreading/2008-11-27-EntryMunge.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/JumpThreading/2008-11-27-EntryMunge.ll?rev=83750&r1=83749&r2=83750&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/JumpThreading/2008-11-27-EntryMunge.ll (original)
+++ llvm/trunk/test/Transforms/JumpThreading/2008-11-27-EntryMunge.ll Sat Oct 10 22:54:21 2009
@@ -1,4 +1,4 @@
-; RUN: opt < %s -jump-threading -simplifycfg -S | grep {ret i32 0}
+; RUN: opt < %s -jump-threading -S | grep {ret i32 0}
; PR3138
define i32 @jt() {
Modified: llvm/trunk/test/Transforms/JumpThreading/2008-11-28-InfLoop.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/JumpThreading/2008-11-28-InfLoop.ll?rev=83750&r1=83749&r2=83750&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/JumpThreading/2008-11-28-InfLoop.ll (original)
+++ llvm/trunk/test/Transforms/JumpThreading/2008-11-28-InfLoop.ll Sat Oct 10 22:54:21 2009
@@ -1,4 +1,4 @@
-; RUN: opt < %s -jump-threading | llvm-dis
+; RUN: opt < %s -jump-threading -S
target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-f80:128:128"
target triple = "i386-apple-darwin9.5"
Modified: llvm/trunk/test/Transforms/JumpThreading/2009-01-19-InfSwitchLoop.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/JumpThreading/2009-01-19-InfSwitchLoop.ll?rev=83750&r1=83749&r2=83750&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/JumpThreading/2009-01-19-InfSwitchLoop.ll (original)
+++ llvm/trunk/test/Transforms/JumpThreading/2009-01-19-InfSwitchLoop.ll Sat Oct 10 22:54:21 2009
@@ -1,4 +1,4 @@
-; RUN: opt < %s -jump-threading | llvm-dis
+; RUN: opt < %s -jump-threading -S
; PR3353
define i32 @test(i8 %X) {
Modified: llvm/trunk/test/Transforms/JumpThreading/basic.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/JumpThreading/basic.ll?rev=83750&r1=83749&r2=83750&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/JumpThreading/basic.ll (original)
+++ llvm/trunk/test/Transforms/JumpThreading/basic.ll Sat Oct 10 22:54:21 2009
@@ -1,6 +1,6 @@
-; RUN: opt < %s -jump-threading -simplifycfg -mem2reg -S | grep {ret i32 %v1}
+; RUN: opt < %s -jump-threading -S | FileCheck %s
; There should be no uncond branches left.
-; RUN: opt < %s -jump-threading -simplifycfg -mem2reg -S | not grep {br label}
+; RUN: opt < %s -jump-threading -S | not grep {br label}
declare i32 @f1()
declare i32 @f2()
@@ -23,10 +23,14 @@
br i1 %A, label %T2, label %F2
T2:
+; CHECK: T2:
+; CHECK: ret i32 %v1
call void @f3()
ret i32 %B
F2:
+; CHECK: F2:
+; CHECK: ret i32 %v2
ret i32 %B
}
@@ -37,6 +41,8 @@
br i1 %cond, label %T1, label %F1
T1:
+; CHECK: %v1 = call i32 @f1()
+; CHECK: ret i32 47
%v1 = call i32 @f1()
br label %Merge
Modified: llvm/trunk/test/Transforms/JumpThreading/compare.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/JumpThreading/compare.ll?rev=83750&r1=83749&r2=83750&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/JumpThreading/compare.ll (original)
+++ llvm/trunk/test/Transforms/JumpThreading/compare.ll Sat Oct 10 22:54:21 2009
@@ -1,5 +1,5 @@
; There should be no phi nodes left.
-; RUN: opt < %s -jump-threading -simplifycfg -mem2reg -S | not grep {phi i32}
+; RUN: opt < %s -jump-threading -S | not grep {phi i32}
declare i32 @f1()
declare i32 @f2()
Modified: llvm/trunk/test/Transforms/JumpThreading/thread-loads.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/JumpThreading/thread-loads.ll?rev=83750&r1=83749&r2=83750&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/JumpThreading/thread-loads.ll (original)
+++ llvm/trunk/test/Transforms/JumpThreading/thread-loads.ll Sat Oct 10 22:54:21 2009
@@ -1,4 +1,4 @@
-; RUN: opt < %s -jump-threading -mem2reg -simplifycfg -S | grep {ret i32 1}
+; RUN: opt < %s -jump-threading -simplifycfg -S | grep {ret i32 1}
; rdar://6402033
; Test that we can thread through the block with the partially redundant load (%2).
More information about the llvm-commits
mailing list