Skip to content

Commit e8843d8

Browse files
committed
Fixups
1 parent b1a66c5 commit e8843d8

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27933,13 +27933,10 @@ bool AArch64TargetLowering::canMergeStoresTo(unsigned AddressSpace, EVT MemVT,
2793327933
if (MemVT.isFixedLengthVector() && !Subtarget->isNeonAvailable())
2793427934
return false;
2793527935

27936-
// Do not merge to float value size (128 bytes) if no implicit
27937-
// float attribute is set.
27936+
// Do not merge to float value size (128 bytes) if no implicit float attribute
27937+
// is set.
2793827938
bool NoFloat = MF.getFunction().hasFnAttribute(Attribute::NoImplicitFloat);
27939-
27940-
if (NoFloat)
27941-
return (MemVT.getSizeInBits() <= 64);
27942-
return true;
27939+
return !NoFloat || MemVT.getSizeInBits() <= 64;
2794327940
}
2794427941

2794527942
bool AArch64TargetLowering::preferIncOfAddToSubOfNot(EVT VT) const {

llvm/test/CodeGen/AArch64/consecutive-stores-of-faddv.ll

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ define void @consecutive_stores_pair(ptr %dest0, <vscale x 4 x float> %vec0, <vs
2424
ret void
2525
}
2626

27-
define void @consecutive_stores_quadruple(ptr %dest0,
27+
define void @consecutive_stores_quadruple(ptr %dest0, <vscale x 4 x float> %vec0, <vscale x 4 x float> %vec1, <vscale x 4 x float> %vec2, <vscale x 4 x float> %vec3) {
2828
; CHECK-LABEL: consecutive_stores_quadruple:
2929
; CHECK: // %bb.0:
3030
; CHECK-NEXT: ptrue p0.s
@@ -36,8 +36,6 @@ define void @consecutive_stores_quadruple(ptr %dest0,
3636
; CHECK-NEXT: mov v2.s[1], v3.s[0]
3737
; CHECK-NEXT: stp d0, d2, [x0]
3838
; CHECK-NEXT: ret
39-
<vscale x 4 x float> %vec0, <vscale x 4 x float> %vec1, <vscale x 4 x float> %vec2, <vscale x 4 x float> %vec3)
40-
{
4139
%dest1 = getelementptr inbounds i8, ptr %dest0, i64 4
4240
%dest2 = getelementptr inbounds i8, ptr %dest1, i64 4
4341
%dest3 = getelementptr inbounds i8, ptr %dest2, i64 4
@@ -68,7 +66,7 @@ define void @consecutive_stores_pair_streaming_function(ptr %dest0, <vscale x 4
6866
ret void
6967
}
7068

71-
define void @consecutive_stores_quadruple_streaming_function(ptr %dest0,
69+
define void @consecutive_stores_quadruple_streaming_function(ptr %dest0, <vscale x 4 x float> %vec0, <vscale x 4 x float> %vec1, <vscale x 4 x float> %vec2, <vscale x 4 x float> %vec3) "aarch64_pstate_sm_enabled" {
7270
; CHECK-LABEL: consecutive_stores_quadruple_streaming_function:
7371
; CHECK: // %bb.0:
7472
; CHECK-NEXT: ptrue p0.s
@@ -79,8 +77,6 @@ define void @consecutive_stores_quadruple_streaming_function(ptr %dest0,
7977
; CHECK-NEXT: faddv s3, p0, z3.s
8078
; CHECK-NEXT: stp s2, s3, [x0, #8]
8179
; CHECK-NEXT: ret
82-
<vscale x 4 x float> %vec0, <vscale x 4 x float> %vec1, <vscale x 4 x float> %vec2, <vscale x 4 x float> %vec3) "aarch64_pstate_sm_enabled"
83-
{
8480
%dest1 = getelementptr inbounds i8, ptr %dest0, i64 4
8581
%dest2 = getelementptr inbounds i8, ptr %dest1, i64 4
8682
%dest3 = getelementptr inbounds i8, ptr %dest2, i64 4

0 commit comments

Comments
 (0)