[llvm] [AMDGPU] Adding multiple use analysis to SIPeepholeSDWA (PR #94800)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 7 13:33:54 PDT 2024


================
@@ -37,20 +37,24 @@ STATISTIC(NumSDWAInstructionsPeepholed,
 
 namespace {
 
+bool isConvertibleToSDWA(MachineInstr &MI, const GCNSubtarget &ST,
+                         const SIInstrInfo *TII);
 class SDWAOperand;
 class SDWADstOperand;
 
-class SIPeepholeSDWA : public MachineFunctionPass {
-public:
-  using SDWAOperandsVector = SmallVector<SDWAOperand *, 4>;
+using SDWAOperandsVector = SmallVector<SDWAOperand *, 4>;
 
+// helper typedef to make code cleaner
----------------
arsenm wrote:

Don't need this comment. Also uses using above, and typedef here. Just use using for both? 

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


More information about the llvm-commits mailing list