[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:42:23 PDT 2024


================
@@ -132,6 +133,14 @@ class AMDGPUInsertSingleUseVDST : public MachineFunctionPass {
 
   AMDGPUInsertSingleUseVDST() : MachineFunctionPass(ID) {}
 
+  static bool isValidProducerInst(const MachineInstr &MI) {
----------------
jayfoad wrote:

Probably simpler to inline this function into its only call site. Then we would not have a mix of "isValid" and "isInvalid" functions, which I find a little confusing.

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


More information about the llvm-commits mailing list