[llvm-commits] CVS: llvm/test/Regression/Transforms/LevelRaise/2002-03-20-Crash.ll 2002-07-16-RaiseCrash2.ll 2002-03-11-IterInvalidate.ll
Chris Lattner
lattner at cs.uiuc.edu
Tue Sep 10 15:05:01 PDT 2002
Changes in directory llvm/test/Regression/Transforms/LevelRaise:
2002-03-20-Crash.ll updated: 1.3 -> 1.4
2002-07-16-RaiseCrash2.ll updated: 1.1 -> 1.2
2002-03-11-IterInvalidate.ll (r1.1) removed
---
Log message:
Clean up pointer using testcases
---
Diffs of the changes:
Index: llvm/test/Regression/Transforms/LevelRaise/2002-03-20-Crash.ll
diff -u llvm/test/Regression/Transforms/LevelRaise/2002-03-20-Crash.ll:1.3 llvm/test/Regression/Transforms/LevelRaise/2002-03-20-Crash.ll:1.4
--- llvm/test/Regression/Transforms/LevelRaise/2002-03-20-Crash.ll:1.3 Thu Aug 22 11:39:14 2002
+++ llvm/test/Regression/Transforms/LevelRaise/2002-03-20-Crash.ll Tue Sep 10 15:04:19 2002
@@ -10,8 +10,10 @@
%Village *"get_results"(%Village * %village)
begin
bb0: ;[#uses=1]
- %cast121 = cast int 24 to %Village * ; <%Village *> [#uses=1]
- %reg123 = add %Village * %village, %cast121 ; <%Village *> [#uses=1]
+ %cast121 = cast int 24 to ulong ; <%Village *> [#uses=1]
+ %A = cast %Village* %village to ulong
+ %reg123 = add ulong %A, %cast121 ; <%Village *> [#uses=1]
+ %reg123 = cast ulong %reg123 to %Village*
%idx = getelementptr %Village * %reg123, uint 0, ubyte 0, uint 0 ; <%Village *> [#uses=1]
%reg118 = load %Village** %idx
ret %Village *%reg118
Index: llvm/test/Regression/Transforms/LevelRaise/2002-07-16-RaiseCrash2.ll
diff -u llvm/test/Regression/Transforms/LevelRaise/2002-07-16-RaiseCrash2.ll:1.1 llvm/test/Regression/Transforms/LevelRaise/2002-07-16-RaiseCrash2.ll:1.2
--- llvm/test/Regression/Transforms/LevelRaise/2002-07-16-RaiseCrash2.ll:1.1 Tue Jul 16 16:33:27 2002
+++ llvm/test/Regression/Transforms/LevelRaise/2002-07-16-RaiseCrash2.ll Tue Sep 10 15:04:19 2002
@@ -5,6 +5,8 @@
implementation
sbyte* %test(int* %ptr) {
%A = cast int* %ptr to sbyte *
- %B = add sbyte* %A, %A
+ %A = cast sbyte* %A to ulong
+ %B = add ulong %A, %A
+ %B = cast ulong %B to sbyte*
ret sbyte * %B
}
More information about the llvm-commits
mailing list