[llvm] [AMDGPU] Reduce use of continue in SIWholeQuadMode. NFC. (PR #93659)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed May 29 02:50:13 PDT 2024


================
@@ -583,40 +572,33 @@ char SIWholeQuadMode::scanInstructions(MachineFunction &MF,
         }
         GlobalFlags |= StateExact;
         III.Disabled = StateWQM | StateStrict;
-        continue;
-      } else {
-        if (Opcode == AMDGPU::SI_PS_LIVE || Opcode == AMDGPU::SI_LIVE_MASK) {
----------------
jayfoad wrote:

The main motivation was to move the if-else chain that starts here "up" into the surrounding if-else chain, because I found it confusing.

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


More information about the llvm-commits mailing list