summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorchandlerc <chandlerc@91177308-0d34-0410-b5e6-96231b3b80d8>2012-09-18 17:49:37 +0000
committerchandlerc <chandlerc@91177308-0d34-0410-b5e6-96231b3b80d8>2012-09-18 17:49:37 +0000
commitb8f1a8f164bec61529dd4cca4240e530087ad470 (patch)
treea54dfe66dbe5b052adf406931110b7136dc4667d /test
parent2f5dfa1ca5fee0ed8a1d8ff299887297201f992e (diff)
Fix getCommonType in a different way from the way I fixed it when
working on FCA splitting. Instead of refusing to form a common type when there are uses of a subsection of the alloca as well as a use of the entire alloca, just skip the subsection uses and continue looking for a whole-alloca use with a type that we can use. This produces slightly prettier IR I think, and also fixes the other failure in the test. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164146 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/SROA/basictest.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Transforms/SROA/basictest.ll b/test/Transforms/SROA/basictest.ll
index 43f791ea1c3..49921aa5879 100644
--- a/test/Transforms/SROA/basictest.ll
+++ b/test/Transforms/SROA/basictest.ll
@@ -1,6 +1,6 @@
; RUN: opt < %s -sroa -S | FileCheck %s
; RUN: opt < %s -sroa -force-ssa-updater -S | FileCheck %s
-; XFAIL: *
+
target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-n8:16:32:64"
declare void @llvm.lifetime.start(i64, i8* nocapture)
@@ -409,7 +409,7 @@ declare void @llvm.memset.p0i8.i32(i8* nocapture, i8, i32, i32, i1) nounwind
define i16 @test5() {
; CHECK: @test5
-; CHECK: alloca i32
+; CHECK: alloca float
; CHECK: ret i16 %
entry: