[llvm] [AMDGPU] Fix Ins64 clamp in the VOPProfile. NFC. (PR #81925)

Stanislav Mekhanoshin via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 15 14:13:52 PST 2024


https://github.com/rampitec updated https://github.com/llvm/llvm-project/pull/81925

>From 3096c0e679221ff35ba2bae70e984ac74b862aa1 Mon Sep 17 00:00:00 2001
From: Stanislav Mekhanoshin <Stanislav.Mekhanoshin at amd.com>
Date: Thu, 15 Feb 2024 13:36:20 -0800
Subject: [PATCH] [AMDGPU] Fix Ins64 clamp in the VOPProfile. NFC.

For some reason only IntClamp was added to the Ins64, bit not FPClamp.
As is this is NFC, but fails to produce proper dag downstream.
---
 llvm/lib/Target/AMDGPU/SIInstrInfo.td | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/llvm/lib/Target/AMDGPU/SIInstrInfo.td b/llvm/lib/Target/AMDGPU/SIInstrInfo.td
index 4b7555de712c80..e5fbcfafd3809f 100644
--- a/llvm/lib/Target/AMDGPU/SIInstrInfo.td
+++ b/llvm/lib/Target/AMDGPU/SIInstrInfo.td
@@ -2344,7 +2344,7 @@ class VOPProfile <list<ValueType> _ArgVT, bit _EnableClamp = 0> {
 
   field dag Ins32 = getIns32<Src0RC32, Src1RC32, NumSrcArgs>.ret;
   field dag Ins64 = getIns64<Src0RC64, Src1RC64, Src2RC64, NumSrcArgs,
-                             HasIntClamp, HasModifiers, HasSrc2Mods,
+                             HasClamp, HasModifiers, HasSrc2Mods,
                              HasOMod, Src0Mod, Src1Mod, Src2Mod>.ret;
   field dag InsVOP3P = getInsVOP3P<Src0RC64, Src1RC64, Src2RC64,
                                    NumSrcArgs, HasClamp, HasOpSel,



More information about the llvm-commits mailing list