mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
ce09e57709
useAA significantly improves the handling of vector code that has TBAA information attached. It also helps other cases, as shown by the testsuite changes here. The only real downside I've seen is that it interferes with MergeConsecutiveStores. The problem is that that optimization works top down, starting at the first store in the chain, and looks for cases where the chain result is only used by a single related store. These related stores don't alias, so useAA will have rewritten all the later stores to use a different chain input (typically the same one as the first store). I think the advantages outweigh the disadvantages though, so for now I've just disabled alias analysis for the unaligned-01.ll test. llvm-svn: 193521
20 lines
596 B
LLVM
20 lines
596 B
LLVM
; Test 32-bit ANDs in which the second operand is variable.
|
|
;
|
|
; RUN: llc < %s -mtriple=s390x-linux-gnu | FileCheck %s
|
|
|
|
; Check that there are no spills.
|
|
define void @f1(<16 x i32> *%src1, <16 x float> *%dest) {
|
|
; CHECK-LABEL: f1:
|
|
; CHECK-NOT: %r15
|
|
; CHECK: br %r14
|
|
%val = load <16 x i32> *%src1, !tbaa !1
|
|
%add = add <16 x i32> %val, %val
|
|
%res = bitcast <16 x i32> %add to <16 x float>
|
|
store <16 x float> %res, <16 x float> *%dest, !tbaa !2
|
|
ret void
|
|
}
|
|
|
|
!0 = metadata !{ metadata !"root" }
|
|
!1 = metadata !{ metadata !"set1", metadata !0 }
|
|
!2 = metadata !{ metadata !"set2", metadata !0 }
|