mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-22 07:32:48 +00:00
e13b87c08d
We had disabled use of TBAA during CodeGen (even when otherwise using AA) because the ptrtoint/inttoptr used by CGP for address sinking caused BasicAA to miss basic type punning that it should catch (and, thus, we'd fail to override TBAA when we should). However, when AA is in use during CodeGen, CGP now uses normal GEPs and bitcasts, instead of ptrtoint/inttoptr, when doing address sinking. As a result, BasicAA should be able to make us do the right thing in the face of type-punning, and it seems safe to enable use of TBAA again. self-hosting seems fine on PPC64/Linux on the P7, with TBAA enabled and -misched=shuffle. Note: We still don't update TBAA when merging stack slots, although because BasicAA should now catch all such cases, this is no longer a blocking issue. Nevertheless, I plan to commit code to deal with this properly in the near future. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206093 91177308-0d34-0410-b5e6-96231b3b80d8
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 }
|