[llvm-commits] CVS: llvm/test/Regression/Transforms/ADCE/2002-05-23-ZeroArgPHITest.ll basictest1.ll basictest2.ll
Reid Spencer
reid at x10sys.com
Thu Nov 23 07:15:47 PST 2006
Changes in directory llvm/test/Regression/Transforms/ADCE:
2002-05-23-ZeroArgPHITest.ll updated: 1.4 -> 1.5
basictest1.ll updated: 1.4 -> 1.5
basictest2.ll updated: 1.4 -> 1.5
---
Log message:
Promote GEP ubyte indices to uint. Backwards compatibility for 1.2 and
older features will be dropped soon and these test cases must not rely
on the upgrade capability.
---
Diffs of the changes: (+11 -11)
2002-05-23-ZeroArgPHITest.ll | 2 +-
basictest1.ll | 10 +++++-----
basictest2.ll | 10 +++++-----
3 files changed, 11 insertions(+), 11 deletions(-)
Index: llvm/test/Regression/Transforms/ADCE/2002-05-23-ZeroArgPHITest.ll
diff -u llvm/test/Regression/Transforms/ADCE/2002-05-23-ZeroArgPHITest.ll:1.4 llvm/test/Regression/Transforms/ADCE/2002-05-23-ZeroArgPHITest.ll:1.5
--- llvm/test/Regression/Transforms/ADCE/2002-05-23-ZeroArgPHITest.ll:1.4 Tue Sep 16 10:25:48 2003
+++ llvm/test/Regression/Transforms/ADCE/2002-05-23-ZeroArgPHITest.ll Thu Nov 23 09:14:52 2006
@@ -23,7 +23,7 @@
bb2: ;[#uses=3]
%reg109 = phi %node_t* [ %reg110, %bb2 ], [ %reg107, %bb1 ] ; <%node_t*> [#uses=1]
- %reg212 = getelementptr %node_t* %reg109, long 0, ubyte 1 ; <%node_t**> [#uses=1]
+ %reg212 = getelementptr %node_t* %reg109, long 0, uint 1 ; <%node_t**> [#uses=1]
%reg110 = load %node_t** %reg212 ; <%node_t*> [#uses=2]
%cond213 = setne %node_t* %reg110, null ; <bool> [#uses=1]
br bool %cond213, label %bb2, label %bb3
Index: llvm/test/Regression/Transforms/ADCE/basictest1.ll
diff -u llvm/test/Regression/Transforms/ADCE/basictest1.ll:1.4 llvm/test/Regression/Transforms/ADCE/basictest1.ll:1.5
--- llvm/test/Regression/Transforms/ADCE/basictest1.ll:1.4 Tue Sep 16 10:25:48 2003
+++ llvm/test/Regression/Transforms/ADCE/basictest1.ll Thu Nov 23 09:14:52 2006
@@ -39,7 +39,7 @@
br bool %cond267, label %bb5, label %bb4
bb4: ;[#uses=2]
- %reg111 = getelementptr [20 x %FILE]* %__iob, long 0, long 1, ubyte 3 ; <ubyte*> [#uses=1]
+ %reg111 = getelementptr [20 x %FILE]* %__iob, long 0, long 1, uint 3 ; <ubyte*> [#uses=1]
%cast274 = getelementptr [34 x sbyte]* %.LC9, long 0, long 0 ; <sbyte*> [#uses=0]
%cast282 = cast ubyte* %reg111 to %FILE* ; <%FILE*> [#uses=0]
call void %exit( int 1 )
@@ -49,9 +49,9 @@
%reg107-idxcast1 = cast int %fd to long ; <long> [#uses=2]
%reg107-idxcast2 = cast int %fd to long ; <long> [#uses=1]
%reg1311 = getelementptr [3 x %spec_fd_t]* %spec_fd, long 0, long %reg107-idxcast2 ; <%spec_fd_t*> [#uses=1]
- %idx1 = getelementptr [3 x %spec_fd_t]* %spec_fd, long 0, long %reg107-idxcast1, ubyte 2 ; <int> [#uses=3]
+ %idx1 = getelementptr [3 x %spec_fd_t]* %spec_fd, long 0, long %reg107-idxcast1, uint 2 ; <int> [#uses=3]
%reg1321 = load int* %idx1
- %idx2 = getelementptr %spec_fd_t* %reg1311, long 0, ubyte 1 ; <int> [#uses=1]
+ %idx2 = getelementptr %spec_fd_t* %reg1311, long 0, uint 1 ; <int> [#uses=1]
%reg1331 = load int* %idx2
%cond270 = setlt int %reg1321, %reg1331 ; <bool> [#uses=1]
br bool %cond270, label %bb9, label %bb6
@@ -70,14 +70,14 @@
bb9: ;[#uses=1]
%reg107-idxcast3 = cast int %fd to long ; <long> [#uses=1]
- %idx3 = getelementptr [3 x %spec_fd_t]* %spec_fd, long 0, long %reg107-idxcast3, ubyte 3 ; <ubyte*> [#uses=1]
+ %idx3 = getelementptr [3 x %spec_fd_t]* %spec_fd, long 0, long %reg107-idxcast3, uint 3 ; <ubyte*> [#uses=1]
%reg1601 = load ubyte** %idx3
%reg132-idxcast1 = cast int %reg1321 to long ; <long> [#uses=1]
%idx4 = getelementptr ubyte* %reg1601, long %reg132-idxcast1 ; <ubyte> [#uses=2]
%reg1621 = load ubyte* %idx4
%cast108 = cast ubyte %reg1621 to long ; <long> [#uses=0]
%reg157 = add int %reg1321, 1 ; <int> [#uses=1]
- %idx5 = getelementptr [3 x %spec_fd_t]* %spec_fd, long 0, long %reg107-idxcast1, ubyte 2
+ %idx5 = getelementptr [3 x %spec_fd_t]* %spec_fd, long 0, long %reg107-idxcast1, uint 2
store int %reg157, int* %idx5
%reg163 = load int* %dbglvl ; <int> [#uses=1]
%cond272 = setle int %reg163, 4 ; <bool> [#uses=1]
Index: llvm/test/Regression/Transforms/ADCE/basictest2.ll
diff -u llvm/test/Regression/Transforms/ADCE/basictest2.ll:1.4 llvm/test/Regression/Transforms/ADCE/basictest2.ll:1.5
--- llvm/test/Regression/Transforms/ADCE/basictest2.ll:1.4 Tue Sep 16 10:25:49 2003
+++ llvm/test/Regression/Transforms/ADCE/basictest2.ll Thu Nov 23 09:14:52 2006
@@ -40,7 +40,7 @@
br label %bb5
bb4: ;[#uses=2]
- %reg111 = getelementptr [20 x %FILE]* %__iob, long 0, long 1, ubyte 3 ; <ubyte*> [#uses=1]
+ %reg111 = getelementptr [20 x %FILE]* %__iob, long 0, long 1, uint 3 ; <ubyte*> [#uses=1]
%cast274 = getelementptr [34 x sbyte]* %.LC9, long 0, long 0 ; <sbyte*> [#uses=0]
%cast282 = cast ubyte* %reg111 to %FILE* ; <%FILE*> [#uses=0]
call void %exit( int 1 )
@@ -50,9 +50,9 @@
%reg107-idxcast1 = cast int %fd to long ; <long> [#uses=2]
%reg107-idxcast2 = cast int %fd to long ; <long> [#uses=1]
%reg1311 = getelementptr [3 x %spec_fd_t]* %spec_fd, long 0, long %reg107-idxcast2 ; <%spec_fd_t*> [#uses=1]
- %idx1 = getelementptr [3 x %spec_fd_t]* %spec_fd, long 0, long %reg107-idxcast1, ubyte 2 ; <int> [#uses=3]
+ %idx1 = getelementptr [3 x %spec_fd_t]* %spec_fd, long 0, long %reg107-idxcast1, uint 2 ; <int> [#uses=3]
%reg1321 = load int* %idx1
- %idx2 = getelementptr %spec_fd_t* %reg1311, long 0, ubyte 1 ; <int> [#uses=1]
+ %idx2 = getelementptr %spec_fd_t* %reg1311, long 0, uint 1 ; <int> [#uses=1]
%reg1331 = load int* %idx2
%cond270 = setlt int %reg1321, %reg1331 ; <bool> [#uses=1]
br bool %cond270, label %bb9, label %bb6
@@ -71,14 +71,14 @@
bb9: ;[#uses=1]
%reg107-idxcast3 = cast int %fd to long ; <uint> [#uses=1]
- %idx3 = getelementptr [3 x %spec_fd_t]* %spec_fd, long 0, long %reg107-idxcast3, ubyte 3 ; <ubyte*> [#uses=1]
+ %idx3 = getelementptr [3 x %spec_fd_t]* %spec_fd, long 0, long %reg107-idxcast3, uint 3 ; <ubyte*> [#uses=1]
%reg1601 = load ubyte** %idx3
%reg132-idxcast1 = cast int %reg1321 to long ; <long> [#uses=1]
%idx4 = getelementptr ubyte* %reg1601, long %reg132-idxcast1 ; <ubyte> [#uses=2]
%reg1621 = load ubyte* %idx4
%cast108 = cast ubyte %reg1621 to long ; <long> [#uses=0]
%reg157 = add int %reg1321, 1 ; <int> [#uses=1]
- %idx5 = getelementptr [3 x %spec_fd_t]* %spec_fd, long 0, long %reg107-idxcast1, ubyte 2
+ %idx5 = getelementptr [3 x %spec_fd_t]* %spec_fd, long 0, long %reg107-idxcast1, uint 2
store int %reg157, int* %idx5
%reg163 = load int* %dbglvl ; <int> [#uses=1]
%cond272 = setle int %reg163, 4 ; <bool> [#uses=1]
More information about the llvm-commits
mailing list