[llvm] bf540ce - [RISCV] Remove extraneous attribute groups from tests. NFC
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 5 00:27:32 PDT 2024
Author: Luke Lau
Date: 2024-08-05T15:27:18+08:00
New Revision: bf540ce55bdcf49f74639d9fe8d7dff9e21c24c9
URL: https://github.com/llvm/llvm-project/commit/bf540ce55bdcf49f74639d9fe8d7dff9e21c24c9
DIFF: https://github.com/llvm/llvm-project/commit/bf540ce55bdcf49f74639d9fe8d7dff9e21c24c9.diff
LOG: [RISCV] Remove extraneous attribute groups from tests. NFC
Added:
Modified:
llvm/test/Analysis/CostModel/RISCV/reduce-scalable-fp.ll
llvm/test/Analysis/CostModel/RISCV/shuffle-broadcast.ll
Removed:
################################################################################
diff --git a/llvm/test/Analysis/CostModel/RISCV/reduce-scalable-fp.ll b/llvm/test/Analysis/CostModel/RISCV/reduce-scalable-fp.ll
index a9a5f4d2de541..4f6e0ba074ed8 100644
--- a/llvm/test/Analysis/CostModel/RISCV/reduce-scalable-fp.ll
+++ b/llvm/test/Analysis/CostModel/RISCV/reduce-scalable-fp.ll
@@ -463,7 +463,7 @@ define half @vreduce_fmin_nxv1f16(<vscale x 1 x half> %v) {
ret half %red
}
-define half @vreduce_fmin_nxv1f16_nonans(<vscale x 1 x half> %v) #0 {
+define half @vreduce_fmin_nxv1f16_nonans(<vscale x 1 x half> %v) {
; CHECK-LABEL: 'vreduce_fmin_nxv1f16_nonans'
; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %red = call nnan half @llvm.vector.reduce.fmin.nxv1f16(<vscale x 1 x half> %v)
; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret half %red
@@ -721,7 +721,7 @@ define half @vreduce_fmax_nxv1f16(<vscale x 1 x half> %v) {
ret half %red
}
-define half @vreduce_fmax_nxv1f16_nonans(<vscale x 1 x half> %v) #0 {
+define half @vreduce_fmax_nxv1f16_nonans(<vscale x 1 x half> %v) {
; CHECK-LABEL: 'vreduce_fmax_nxv1f16_nonans'
; CHECK-NEXT: Cost Model: Found an estimated cost of 3 for instruction: %red = call nnan half @llvm.vector.reduce.fmax.nxv1f16(<vscale x 1 x half> %v)
; CHECK-NEXT: Cost Model: Found an estimated cost of 0 for instruction: ret half %red
diff --git a/llvm/test/Analysis/CostModel/RISCV/shuffle-broadcast.ll b/llvm/test/Analysis/CostModel/RISCV/shuffle-broadcast.ll
index 79ba1562d0f88..9b34320d4832b 100644
--- a/llvm/test/Analysis/CostModel/RISCV/shuffle-broadcast.ll
+++ b/llvm/test/Analysis/CostModel/RISCV/shuffle-broadcast.ll
@@ -2,7 +2,7 @@
; RUN: opt < %s -passes="print<cost-model>" 2>&1 -disable-output -S -mtriple=riscv64 -mattr=+v,+f,+d,+zfh,+zvfh | FileCheck %s
; RUN: opt < %s -passes="print<cost-model>" -cost-kind=code-size 2>&1 -disable-output -S -mtriple=riscv64 -mattr=+v,+f,+d,+zfh,+zvfh | FileCheck %s --check-prefix=SIZE
-define void @broadcast_scalable() #0{
+define void @broadcast_scalable() {
; CHECK-LABEL: 'broadcast_scalable'
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %zero = shufflevector <vscale x 1 x half> undef, <vscale x 1 x half> undef, <vscale x 1 x i32> zeroinitializer
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %1 = shufflevector <vscale x 2 x half> undef, <vscale x 2 x half> undef, <vscale x 2 x i32> zeroinitializer
@@ -151,7 +151,7 @@ define void @broadcast_scalable() #0{
ret void
}
-define void @broadcast_fixed() #0{
+define void @broadcast_fixed() {
; CHECK-LABEL: 'broadcast_fixed'
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %zero = shufflevector <2 x half> undef, <2 x half> undef, <2 x i32> zeroinitializer
; CHECK-NEXT: Cost Model: Found an estimated cost of 1 for instruction: %1 = shufflevector <4 x half> undef, <4 x half> undef, <4 x i32> zeroinitializer
More information about the llvm-commits
mailing list