From 08f62ff8ef3c8892a68073fe80ac6d8ef95201f2 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Tue, 16 Jun 2020 17:02:09 +0100 Subject: [PATCH] [Matrix] Add align info to some more loads/stores (NFC). Some tests were missing alignment info. Subsequent changes properly preserve the set alignment. Set it properly beforehand, to avoid unnecessary test changes. --- .../LowerMatrixIntrinsics/multiply-fused-multiple-blocks.ll | 4 ++-- .../Transforms/LowerMatrixIntrinsics/propagate-forward.ll | 2 +- .../Transforms/LowerMatrixIntrinsics/propagate-mixed-users.ll | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/llvm/test/Transforms/LowerMatrixIntrinsics/multiply-fused-multiple-blocks.ll b/llvm/test/Transforms/LowerMatrixIntrinsics/multiply-fused-multiple-blocks.ll index f70e105ecca8..37a1f487b308 100644 --- a/llvm/test/Transforms/LowerMatrixIntrinsics/multiply-fused-multiple-blocks.ll +++ b/llvm/test/Transforms/LowerMatrixIntrinsics/multiply-fused-multiple-blocks.ll @@ -284,12 +284,12 @@ entry: true: %a.add = fadd <6 x double> %a, %a - store <6 x double> %a.add, <6 x double>* %A + store <6 x double> %a.add, <6 x double>* %A, align 8 br label %end false: %b.add = fadd <6 x double> %b, %b - store <6 x double> %b.add, <6 x double>* %B + store <6 x double> %b.add, <6 x double>* %B, align 8 br label %end end: diff --git a/llvm/test/Transforms/LowerMatrixIntrinsics/propagate-forward.ll b/llvm/test/Transforms/LowerMatrixIntrinsics/propagate-forward.ll index a678971c90ea..6f63ed55c7f0 100644 --- a/llvm/test/Transforms/LowerMatrixIntrinsics/propagate-forward.ll +++ b/llvm/test/Transforms/LowerMatrixIntrinsics/propagate-forward.ll @@ -37,7 +37,7 @@ define void @transpose_store(<8 x double> %a, <8 x double>* %Ptr) { ; entry: %c = call <8 x double> @llvm.matrix.transpose(<8 x double> %a, i32 2, i32 4) - store <8 x double> %c, <8 x double>* %Ptr + store <8 x double> %c, <8 x double>* %Ptr, align 8 ret void } diff --git a/llvm/test/Transforms/LowerMatrixIntrinsics/propagate-mixed-users.ll b/llvm/test/Transforms/LowerMatrixIntrinsics/propagate-mixed-users.ll index 26f7478f470c..43eddb5534ff 100644 --- a/llvm/test/Transforms/LowerMatrixIntrinsics/propagate-mixed-users.ll +++ b/llvm/test/Transforms/LowerMatrixIntrinsics/propagate-mixed-users.ll @@ -43,7 +43,7 @@ define <8 x double> @strided_load_4x4(<8 x double> %in, <8 x double>* %Ptr) { ; CHECK-NEXT: ret <8 x double> [[TMP19]] ; %transposed = call <8 x double> @llvm.matrix.transpose(<8 x double> %in, i32 4, i32 2) - store <8 x double> %transposed, <8 x double>* %Ptr + store <8 x double> %transposed, <8 x double>* %Ptr, align 8 call void @foo(<8 x double> %transposed) ret <8 x double> %transposed }