Eliminate multiply of pointer type
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3628 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Transforms/InstCombine/2002-05-14-TouchDeletedInst.ll b/test/Transforms/InstCombine/2002-05-14-TouchDeletedInst.ll
index f4130bc..ee8a36b 100644
--- a/test/Transforms/InstCombine/2002-05-14-TouchDeletedInst.ll
+++ b/test/Transforms/InstCombine/2002-05-14-TouchDeletedInst.ll
@@ -375,7 +375,8 @@
%reg632 = phi uint [ %reg634, %bb36 ], [ %cast948, %bb35 ] ; <uint> [#uses=1]
%reg633 = phi uint [ %reg635, %bb36 ], [ 0, %bb35 ] ; <uint> [#uses=2]
%reg633-casted = cast uint %reg633 to sbyte* ; <sbyte*> [#uses=1]
- %reg631-scale = mul sbyte* %reg633-casted, null ; <sbyte*> [#uses=1]
+ %reg631-scale = mul uint %reg633, 0 ; <sbyte*> [#uses=1]
+ %reg631-scale = cast uint %reg631-scale to sbyte*
%reg6311 = getelementptr sbyte* %reg631-scale, uint %parent-idxcast ; <sbyte*> [#uses=2]
%reg632-scale = mul uint %reg632, 4 ; <uint> [#uses=1]
%reg5581 = getelementptr sbyte* %reg6311, uint %reg632-scale ; <sbyte*> [#uses=1]