[PATCH] D139872: [llvm][CallBrPrepare] split critical edges
    Nick Desaulniers via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Dec 12 14:56:02 PST 2022
    
    
  
nickdesaulniers added inline comments.
================
Comment at: llvm/lib/CodeGen/CallBrPrepare.cpp:114
+      assert(Synth && "Failed to split a known critical edge from callbr");
+      if (Synth)
+        Changed = true;
----------------
aeubanks wrote:
> unnecessary if
`SplitKnownCriticalEdge` is fallible.  If we don't end up splitting the critical edge, then we shouldn't mark denote that the pass has made changes, right?
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139872/new/
https://reviews.llvm.org/D139872
    
    
More information about the llvm-commits
mailing list