diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-02-27 21:17:42 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-02-27 21:17:42 +0000 |
commit | a79ac14fa68297f9888bc70a10df5ed9b8864e38 (patch) | |
tree | 8d8217a8928e3ee599bdde405e2e178b3a55b645 /llvm/test/CodeGen/X86/loop-strength-reduce4.ll | |
parent | 83687fb9e654c9d0086e7f6b728c26fa0b729e71 (diff) | |
download | bcm5719-llvm-a79ac14fa68297f9888bc70a10df5ed9b8864e38.tar.gz bcm5719-llvm-a79ac14fa68297f9888bc70a10df5ed9b8864e38.zip |
[opaque pointer type] Add textual IR support for explicit type parameter to load instruction
Essentially the same as the GEP change in r230786.
A similar migration script can be used to update test cases, though a few more
test case improvements/changes were required this time around: (r229269-r229278)
import fileinput
import sys
import re
pat = re.compile(r"((?:=|:|^)\s*load (?:atomic )?(?:volatile )?(.*?))(| addrspace\(\d+\) *)\*($| *(?:%|@|null|undef|blockaddress|getelementptr|addrspacecast|bitcast|inttoptr|\[\[[a-zA-Z]|\{\{).*$)")
for line in sys.stdin:
sys.stdout.write(re.sub(pat, r"\1, \2\3*\4", line))
Reviewers: rafael, dexonsmith, grosser
Differential Revision: http://reviews.llvm.org/D7649
llvm-svn: 230794
Diffstat (limited to 'llvm/test/CodeGen/X86/loop-strength-reduce4.ll')
-rw-r--r-- | llvm/test/CodeGen/X86/loop-strength-reduce4.ll | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/test/CodeGen/X86/loop-strength-reduce4.ll b/llvm/test/CodeGen/X86/loop-strength-reduce4.ll index 681051eef05..786534b00d3 100644 --- a/llvm/test/CodeGen/X86/loop-strength-reduce4.ll +++ b/llvm/test/CodeGen/X86/loop-strength-reduce4.ll @@ -27,30 +27,30 @@ bb: ; preds = %bb, %entry %t.063.0 = phi i32 [ 0, %entry ], [ %tmp47, %bb ] ; <i32> [#uses=1] %j.065.0 = shl i32 %indvar, 2 ; <i32> [#uses=4] %tmp3 = getelementptr [0 x i32], [0 x i32]* @state, i32 0, i32 %j.065.0 ; <i32*> [#uses=2] - %tmp4 = load i32* %tmp3, align 4 ; <i32> [#uses=1] + %tmp4 = load i32, i32* %tmp3, align 4 ; <i32> [#uses=1] %tmp6 = getelementptr [0 x i32], [0 x i32]* @S, i32 0, i32 %t.063.0 ; <i32*> [#uses=1] - %tmp7 = load i32* %tmp6, align 4 ; <i32> [#uses=1] + %tmp7 = load i32, i32* %tmp6, align 4 ; <i32> [#uses=1] %tmp8 = xor i32 %tmp7, %tmp4 ; <i32> [#uses=2] store i32 %tmp8, i32* %tmp3, align 4 %tmp1378 = or i32 %j.065.0, 1 ; <i32> [#uses=1] %tmp16 = getelementptr [0 x i32], [0 x i32]* @state, i32 0, i32 %tmp1378 ; <i32*> [#uses=2] - %tmp17 = load i32* %tmp16, align 4 ; <i32> [#uses=1] + %tmp17 = load i32, i32* %tmp16, align 4 ; <i32> [#uses=1] %tmp19 = getelementptr [0 x i32], [0 x i32]* @S, i32 0, i32 %tmp8 ; <i32*> [#uses=1] - %tmp20 = load i32* %tmp19, align 4 ; <i32> [#uses=1] + %tmp20 = load i32, i32* %tmp19, align 4 ; <i32> [#uses=1] %tmp21 = xor i32 %tmp20, %tmp17 ; <i32> [#uses=2] store i32 %tmp21, i32* %tmp16, align 4 %tmp2680 = or i32 %j.065.0, 2 ; <i32> [#uses=1] %tmp29 = getelementptr [0 x i32], [0 x i32]* @state, i32 0, i32 %tmp2680 ; <i32*> [#uses=2] - %tmp30 = load i32* %tmp29, align 4 ; <i32> [#uses=1] + %tmp30 = load i32, i32* %tmp29, align 4 ; <i32> [#uses=1] %tmp32 = getelementptr [0 x i32], [0 x i32]* @S, i32 0, i32 %tmp21 ; <i32*> [#uses=1] - %tmp33 = load i32* %tmp32, align 4 ; <i32> [#uses=1] + %tmp33 = load i32, i32* %tmp32, align 4 ; <i32> [#uses=1] %tmp34 = xor i32 %tmp33, %tmp30 ; <i32> [#uses=2] store i32 %tmp34, i32* %tmp29, align 4 %tmp3982 = or i32 %j.065.0, 3 ; <i32> [#uses=1] %tmp42 = getelementptr [0 x i32], [0 x i32]* @state, i32 0, i32 %tmp3982 ; <i32*> [#uses=2] - %tmp43 = load i32* %tmp42, align 4 ; <i32> [#uses=1] + %tmp43 = load i32, i32* %tmp42, align 4 ; <i32> [#uses=1] %tmp45 = getelementptr [0 x i32], [0 x i32]* @S, i32 0, i32 %tmp34 ; <i32*> [#uses=1] - %tmp46 = load i32* %tmp45, align 4 ; <i32> [#uses=1] + %tmp46 = load i32, i32* %tmp45, align 4 ; <i32> [#uses=1] %tmp47 = xor i32 %tmp46, %tmp43 ; <i32> [#uses=3] store i32 %tmp47, i32* %tmp42, align 4 %indvar.next = add i32 %indvar, 1 ; <i32> [#uses=2] |