llvm.org GIT mirror llvm / ba3b3e8
Fix to avoid addition on pointers, which is no longer legal. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3850 91177308-0d34-0410-b5e6-96231b3b80d8 Vikram S. Adve 18 years ago
2 changed file(s) with 10 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
164164
165165 bb2: ;;
166166 %reg114 = shl int %N, ubyte 2 ;;
167 %cast115 = cast int %reg114 to int* ;; reg114 will be propagated
168 %reg116 = add int* %A, %cast115 ;;
169 %reg118 = load int* %reg116 ;;
167 %cast115 = cast int %reg114 to long ;; reg114 will be propagated
168 %cast116 = cast int* %A to long ;; %A will be propagated
169 %reg116 = add long %cast116, %cast115 ;;
170 %castPtr = cast long %reg116 to int* ;; %A will be propagated
171 %reg118 = load int* %castPtr ;;
170172 %cast117 = cast int %reg118 to long ;; reg118 will be copied 'cos
171173 %reg159 = add long 1234567, %cast117 ;; cast117 has 2 uses, here
172174 %reg160 = add long 7654321, %cast117 ;; and here.
164164
165165 bb2: ;;
166166 %reg114 = shl int %N, ubyte 2 ;;
167 %cast115 = cast int %reg114 to int* ;; reg114 will be propagated
168 %reg116 = add int* %A, %cast115 ;;
169 %reg118 = load int* %reg116 ;;
167 %cast115 = cast int %reg114 to long ;; reg114 will be propagated
168 %cast116 = cast int* %A to long ;; %A will be propagated
169 %reg116 = add long %cast116, %cast115 ;;
170 %castPtr = cast long %reg116 to int* ;; %A will be propagated
171 %reg118 = load int* %castPtr ;;
170172 %cast117 = cast int %reg118 to long ;; reg118 will be copied 'cos
171173 %reg159 = add long 1234567, %cast117 ;; cast117 has 2 uses, here
172174 %reg160 = add long 7654321, %cast117 ;; and here.