[llvm] AMDGPU/GlobalISel: Disable LCSSA pass (PR #124297)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 24 08:18:18 PST 2025


================
@@ -1366,7 +1366,8 @@ bool GCNPassConfig::addPreISel() {
   // control flow modifications.
   addPass(createAMDGPURewriteUndefForPHILegacyPass());
 
-  addPass(createLCSSAPass());
+  if (!getCGPassBuilderOption().EnableGlobalISelOption)
----------------
arsenm wrote:

You can't just disable a pass for only globalisel. This will break the dag if there is a fallback 

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


More information about the llvm-commits mailing list