[llvm] [AMDGPU] Exclude certain opcodes from being marked as single use (PR #91802)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 20 04:34:11 PDT 2024


================
@@ -175,6 +179,8 @@ class VOP3P_Pseudo <string opName, VOPProfile P, list<dag> pattern = []> :
 class VOP_Real<VOP_Pseudo ps> {
   Instruction Opcode = !cast<Instruction>(NAME);
   bit IsSingle = ps.Pfl.IsSingle;
+  bit IsInvalidSingleUseConsumer = ps.Pfl.IsInvalidSingleUseConsumer;
+  bit IsInvalidSingleUseProducer = ps.Pfl.IsInvalidSingleUseProducer;
----------------
jayfoad wrote:

Copy from the pseudo not the profile.

https://github.com/llvm/llvm-project/pull/91802


More information about the llvm-commits mailing list