[llvm] [AMDGPU][NewPM] Port SIPeepholeSDWA pass to NPM (PR #107049)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 3 22:12:58 PDT 2024


================
@@ -1235,10 +1240,17 @@ void SIPeepholeSDWA::legalizeScalarOperands(MachineInstr &MI,
   }
 }
 
-bool SIPeepholeSDWA::runOnMachineFunction(MachineFunction &MF) {
+bool SIPeepholeSDWALegacy::runOnMachineFunction(MachineFunction &MF) {
+  if (skipFunction(MF.getFunction())) {
----------------
arsenm wrote:

Don't need braces 

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


More information about the llvm-commits mailing list