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

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 11 06:37:19 PDT 2024


================
@@ -607,6 +615,16 @@ bool isTrue16Inst(unsigned Opc) {
   return Info ? Info->IsTrue16 : false;
 }
 
+bool isInvalidSingleUseConsumerInst(unsigned Opc) {
+  const SingleUseExceptionInfo *Info = getSingleUseExceptionHelper(Opc);
+  return Info ? Info->IsInvalidSingleUseConsumer : false;
----------------
jayfoad wrote:

Nit: `return Info && Info->IsInvalidSingleUseConsumer`. (I realize you were just copying the existing code.)

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


More information about the llvm-commits mailing list