diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-03 21:08:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-03 21:08:45 +0000 |
commit | 1aa7056b13ac9e0f3fe176d37739ec484d4fe4da (patch) | |
tree | 972d00f2232f96bba1d7cd26352904f114b095a7 /test/Transforms/ScalarRepl | |
parent | 6e01115bb122ef82daa6c8133a1d199d6b8ff767 (diff) | |
download | external_llvm-1aa7056b13ac9e0f3fe176d37739ec484d4fe4da.zip external_llvm-1aa7056b13ac9e0f3fe176d37739ec484d4fe4da.tar.gz external_llvm-1aa7056b13ac9e0f3fe176d37739ec484d4fe4da.tar.bz2 |
teach "convert from scalar" to handle loads of fca's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63659 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/ScalarRepl')
-rw-r--r-- | test/Transforms/ScalarRepl/sroa-fca.ll | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Transforms/ScalarRepl/sroa-fca.ll b/test/Transforms/ScalarRepl/sroa-fca.ll index a7ec3a1..1bfdacc 100644 --- a/test/Transforms/ScalarRepl/sroa-fca.ll +++ b/test/Transforms/ScalarRepl/sroa-fca.ll @@ -10,3 +10,12 @@ define i64 @test({i32, i32} %A) { ret i64 %Q } +define {i32,i32} @test2(i64 %A) { + %X = alloca i64 + %Y = bitcast i64* %X to {i32,i32}* + store i64 %A, i64* %X + + %Q = load {i32,i32}* %Y + ret {i32,i32} %Q +} + |