[llvm] [SPIR-V] Add pre-headers to loops. (PR #75844)

Nathan Gauër via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 4 11:16:24 PST 2024


================
@@ -587,6 +587,40 @@ static void processSwitches(MachineFunction &MF, SPIRVGlobalRegistry *GR,
   }
 }
 
+static bool isImplicitFallthrough(MachineBasicBlock &MBB) {
+  if (MBB.empty())
+    return true;
+
+  // Branching spirv intrinsics are not detected by this generic method.
----------------
Keenuts wrote:

Ah right, thanks! Fixed both occurences.

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


More information about the llvm-commits mailing list