[llvm] [NVPTX][NFC] Remove unneeded declarations in test (PR #101167)

Hugh Delaney via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 02:13:09 PDT 2024


https://github.com/hdelan updated https://github.com/llvm/llvm-project/pull/101167

>From 36a15892d8d9285a7e6a3a94c324df55e9bbea0f Mon Sep 17 00:00:00 2001
From: Hugh Delaney <hugh.delaney at codeplay.com>
Date: Tue, 30 Jul 2024 12:07:37 +0100
Subject: [PATCH] Remove unneeded declarations in test

Only the bf16 declarations are needed, as only they are lowered in
AutoUpgrade.cpp.
---
 .../math-intrins-sm80-ptx70-autoupgrade.ll    | 24 -------------------
 1 file changed, 24 deletions(-)

diff --git a/llvm/test/CodeGen/NVPTX/math-intrins-sm80-ptx70-autoupgrade.ll b/llvm/test/CodeGen/NVPTX/math-intrins-sm80-ptx70-autoupgrade.ll
index 34b9c08509326..3e6477c199577 100644
--- a/llvm/test/CodeGen/NVPTX/math-intrins-sm80-ptx70-autoupgrade.ll
+++ b/llvm/test/CodeGen/NVPTX/math-intrins-sm80-ptx70-autoupgrade.ll
@@ -6,40 +6,16 @@ declare i32 @llvm.nvvm.abs.bf16x2(i32)
 declare i16 @llvm.nvvm.neg.bf16(i16)
 declare i32 @llvm.nvvm.neg.bf16x2(i32)
 
-declare float @llvm.nvvm.fmin.nan.f(float, float)
-declare float @llvm.nvvm.fmin.ftz.nan.f(float, float)
-declare half @llvm.nvvm.fmin.f16(half, half)
-declare half @llvm.nvvm.fmin.ftz.f16(half, half)
-declare half @llvm.nvvm.fmin.nan.f16(half, half)
-declare half @llvm.nvvm.fmin.ftz.nan.f16(half, half)
-declare <2 x half> @llvm.nvvm.fmin.f16x2(<2 x half>, <2 x half>)
-declare <2 x half> @llvm.nvvm.fmin.ftz.f16x2(<2 x half>, <2 x half>)
-declare <2 x half> @llvm.nvvm.fmin.nan.f16x2(<2 x half>, <2 x half>)
-declare <2 x half> @llvm.nvvm.fmin.ftz.nan.f16x2(<2 x half>, <2 x half>)
 declare i16 @llvm.nvvm.fmin.bf16(i16, i16)
 declare i16 @llvm.nvvm.fmin.nan.bf16(i16, i16)
 declare i32 @llvm.nvvm.fmin.bf16x2(i32, i32)
 declare i32 @llvm.nvvm.fmin.nan.bf16x2(i32, i32)
 
-declare float @llvm.nvvm.fmax.nan.f(float, float)
-declare float @llvm.nvvm.fmax.ftz.nan.f(float, float)
-declare half @llvm.nvvm.fmax.f16(half, half)
-declare half @llvm.nvvm.fmax.ftz.f16(half, half)
-declare half @llvm.nvvm.fmax.nan.f16(half, half)
-declare half @llvm.nvvm.fmax.ftz.nan.f16(half, half)
-declare <2 x half> @llvm.nvvm.fmax.f16x2(<2 x half>, <2 x half>)
-declare <2 x half> @llvm.nvvm.fmax.ftz.f16x2(<2 x half>, <2 x half>)
-declare <2 x half> @llvm.nvvm.fmax.nan.f16x2(<2 x half>, <2 x half>)
-declare <2 x half> @llvm.nvvm.fmax.ftz.nan.f16x2(<2 x half>, <2 x half>)
 declare i16 @llvm.nvvm.fmax.bf16(i16, i16)
 declare i16 @llvm.nvvm.fmax.nan.bf16(i16, i16)
 declare i32 @llvm.nvvm.fmax.bf16x2(i32, i32)
 declare i32 @llvm.nvvm.fmax.nan.bf16x2(i32, i32)
 
-declare half @llvm.nvvm.fma.rn.relu.f16(half, half, half)
-declare half @llvm.nvvm.fma.rn.ftz.relu.f16(half, half, half)
-declare <2 x half> @llvm.nvvm.fma.rn.relu.f16x2(<2 x half>, <2 x half>, <2 x half>)
-declare <2 x half> @llvm.nvvm.fma.rn.ftz.relu.f16x2(<2 x half>, <2 x half>, <2 x half>)
 declare i16 @llvm.nvvm.fma.rn.bf16(i16, i16, i16)
 declare i16 @llvm.nvvm.fma.rn.relu.bf16(i16, i16, i16)
 declare i32 @llvm.nvvm.fma.rn.bf16x2(i32, i32, i32)



More information about the llvm-commits mailing list