From 1aa7056b13ac9e0f3fe176d37739ec484d4fe4da Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 3 Feb 2009 21:08:45 +0000 Subject: 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 --- test/Transforms/ScalarRepl/sroa-fca.ll | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/Transforms') 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 +} + -- cgit v1.1