[llvm-commits] CVS: llvm/test/Regression/LLC/select.ll

Vikram Adve vadve at psmith.cs.uiuc.edu
Thu Sep 19 19:58:01 PDT 2002


Changes in directory llvm/test/Regression/LLC:

select.ll updated: 1.5 -> 1.6

---
Log message:

Fix to avoid addition on pointers, which is no longer legal.


---
Diffs of the changes:

Index: llvm/test/Regression/LLC/select.ll
diff -u llvm/test/Regression/LLC/select.ll:1.5 llvm/test/Regression/LLC/select.ll:1.6
--- llvm/test/Regression/LLC/select.ll:1.5	Wed Aug 21 22:05:13 2002
+++ llvm/test/Regression/LLC/select.ll	Thu Sep 19 19:57:37 2002
@@ -165,9 +165,11 @@
 
 bb2:		;;<label>
 	%reg114 = shl int %N, ubyte 2		;;
-	%cast115 = cast int %reg114 to int*	;; reg114 will be propagated
-	%reg116 = add int* %A, %cast115		;;
-	%reg118 = load int* %reg116		;;
+	%cast115 = cast int %reg114 to long	;; reg114 will be propagated
+	%cast116 = cast int* %A to long		;; %A will be propagated 
+	%reg116  = add long %cast116, %cast115	;;
+	%castPtr = cast long %reg116 to int*    ;; %A will be propagated 
+	%reg118 = load int* %castPtr		;;
 	%cast117 = cast int %reg118 to long	;; reg118 will be copied 'cos
 	%reg159 = add long 1234567, %cast117	;;  cast117 has 2 uses, here
 	%reg160 = add long 7654321, %cast117	;;  and here.





More information about the llvm-commits mailing list