mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
66589dcc8f
Most SelectionDAG code drops the TBAA info when creating a new form of a load and store (e.g. during legalization, or when converting a plain load to an extending one). This patch tries to catch all cases where the TBAA information can legitimately be carried over. The patch adds alternative forms of getLoad() and getExtLoad() that take a MachineMemOperand instead of individual fields. (The corresponding getTruncStore() already exists.) The idea is to use the MachineMemOperand forms when all fields are carried over (size, pointer info, isVolatile, isNonTemporal, alignment and TBAA info). If some adjustment is being made, e.g. to narrow the load, then we still pass the individual fields but also pass the TBAA info. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193517 91177308-0d34-0410-b5e6-96231b3b80d8
21 lines
664 B
LLVM
21 lines
664 B
LLVM
; Test 32-bit ANDs in which the second operand is variable.
|
|
;
|
|
; RUN: llc < %s -mtriple=s390x-linux-gnu -combiner-alias-analysis \
|
|
; RUN: -combiner-global-alias-analysis | 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 }
|