[llvm] AMDGPU: Copy SubtargetPredicate from pseudo for DSDIR_Real (PR #84057)
Changpeng Fang via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 5 11:02:19 PST 2024
https://github.com/changpeng created https://github.com/llvm/llvm-project/pull/84057
None
>From 8f1138da4fd1ef7f8883a091da41a0dc380238a7 Mon Sep 17 00:00:00 2001
From: Changpeng Fang <changpeng.fang at amd.com>
Date: Tue, 5 Mar 2024 10:59:17 -0800
Subject: [PATCH] AMDGPU: Copy SubtargetPredicate from pseudo for DSDIR_Real
---
llvm/lib/Target/AMDGPU/DSDIRInstructions.td | 3 +++
1 file changed, 3 insertions(+)
diff --git a/llvm/lib/Target/AMDGPU/DSDIRInstructions.td b/llvm/lib/Target/AMDGPU/DSDIRInstructions.td
index 3ef765f93395eb..f4f02d2cebfd98 100644
--- a/llvm/lib/Target/AMDGPU/DSDIRInstructions.td
+++ b/llvm/lib/Target/AMDGPU/DSDIRInstructions.td
@@ -115,6 +115,9 @@ class DSDIR_Real<DSDIR_Pseudo lds, dag ins, string asm, int subtarget> :
SIMCInstr <lds.Mnemonic, subtarget> {
let isPseudo = 0;
let isCodeGenOnly = 0;
+
+ // copy SubtargetPredicate from pseudo.
+ let SubtargetPredicate = lds.SubtargetPredicate;
}
//===----------------------------------------------------------------------===//
More information about the llvm-commits
mailing list