[llvm-commits] CVS: llvm/test/Transforms/LoopUnswitch/2007-05-09-Unreachable.ll

Devang Patel dpatel at apple.com
Wed May 9 01:09:18 PDT 2007



Changes in directory llvm/test/Transforms/LoopUnswitch:

2007-05-09-Unreachable.ll added (r1.1)
---
Log message:

New test.


---
Diffs of the changes:  (+32 -0)

 2007-05-09-Unreachable.ll |   32 ++++++++++++++++++++++++++++++++
 1 files changed, 32 insertions(+)


Index: llvm/test/Transforms/LoopUnswitch/2007-05-09-Unreachable.ll
diff -c /dev/null llvm/test/Transforms/LoopUnswitch/2007-05-09-Unreachable.ll:1.1
*** /dev/null	Wed May  9 03:08:56 2007
--- llvm/test/Transforms/LoopUnswitch/2007-05-09-Unreachable.ll	Wed May  9 03:08:46 2007
***************
*** 0 ****
--- 1,32 ----
+ ; RUN: llvm-upgrade < %s | llvm-as | opt -loop-unswitch -disable-output
+ ; ModuleID = 'PR1333.bc'
+ 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"
+ target triple = "i686-pc-linux-gnu"
+ 	%struct.ada__streams__root_stream_type = type { %struct.ada__tags__dispatch_table* }
+ 	%struct.ada__tags__dispatch_table = type { [1 x i8*] }
+ 	%struct.quotes__T173s = type { i8, %struct.quotes__T173s__T174s, [2 x [1 x double]], [2 x i16], i64, i8 }
+ 	%struct.quotes__T173s__T174s = type { i8, i8, i8, i16, i16, [2 x [1 x double]] }
+ 
+ void @quotes__write_quote() {
+ entry:
+ 	%tmp606.i = icmp eq i32 0, 0		; <i1> [#uses=1]
+ 	br label %bb
+ 
+ bb:		; preds = %cond_next73, %bb, %entry
+ 	br i1 false, label %bb51, label %bb
+ 
+ bb51:		; preds = %cond_next73, %bb
+ 	br i1 %tmp606.i, label %quotes__bid_ask_depth_offset_matrices__get_price.exit, label %cond_true.i
+ 
+ cond_true.i:		; preds = %bb51
+ 	unreachable
+ 
+ quotes__bid_ask_depth_offset_matrices__get_price.exit:		; preds = %bb51
+ 	br i1 false, label %cond_next73, label %cond_true72
+ 
+ cond_true72:		; preds = %quotes__bid_ask_depth_offset_matrices__get_price.exit
+ 	unreachable
+ 
+ cond_next73:		; preds = %quotes__bid_ask_depth_offset_matrices__get_price.exit
+ 	br i1 false, label %bb, label %bb51
+ }






More information about the llvm-commits mailing list