[llvm-commits] CVS: llvm/test/Regression/CodeGen/Generic/fwdtwice.ll

Chris Lattner lattner at cs.uiuc.edu
Fri Jan 7 13:16:12 PST 2005



Changes in directory llvm/test/Regression/CodeGen/Generic:

fwdtwice.ll updated: 1.2 -> 1.3
---
Log message:

modernize and clean up this test.



---
Diffs of the changes:  (+6 -13)

Index: llvm/test/Regression/CodeGen/Generic/fwdtwice.ll
diff -u llvm/test/Regression/CodeGen/Generic/fwdtwice.ll:1.2 llvm/test/Regression/CodeGen/Generic/fwdtwice.ll:1.3
--- llvm/test/Regression/CodeGen/Generic/fwdtwice.ll:1.2	Sat Nov  6 17:05:53 2004
+++ llvm/test/Regression/CodeGen/Generic/fwdtwice.ll	Fri Jan  7 15:15:58 2005
@@ -13,23 +13,16 @@
 ;; This came from %bb1 of sumarrray.ll generated from sumarray.c.
 
 
-;;;; ******************************************************
-implementation
-;;;; ******************************************************
-
-int "SumArray"(int %Num)
-begin
-bb0:                                    ;[#uses=3]
+int %SumArray(int %Num) {
+        %Num = alloca int
         br label %Top
 Top:
-        %Num = alloca int               ; <int *> [#uses=2]
         store int %Num, int * %Num
-        %reg108 = load int * %Num               ; <int> [#uses=2]
-        %cast1006 = cast int %reg108 to uint            ; <uint> [#uses=1]
-        %cond1001 = setle uint %cast1006, 0             ; <bool> [#uses=1]
+        %reg108 = load int * %Num
+        %cast1006 = cast int %reg108 to uint
+        %cond1001 = setle uint %cast1006, 0
 	br bool %cond1001, label %bb6, label %Top
 
 bb6:
 	ret int 42
-end
-
+}






More information about the llvm-commits mailing list