[llvm] [VPlan] Retain exit conditions and edges in initial VPlan (NFC). (PR #137709)
    Florian Hahn via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue May  6 12:54:11 PDT 2025
    
    
  
================
@@ -146,14 +149,6 @@ bool PlainCFGBuilder::isExternalDef(Value *Val) {
     // Instruction definition is in outermost loop PH.
     return false;
 
-  // Check whether Instruction definition is in a loop exit.
-  SmallVector<BasicBlock *> ExitBlocks;
-  TheLoop->getExitBlocks(ExitBlocks);
-  if (is_contained(ExitBlocks, InstParent)) {
-    // Instruction definition is in outermost loop exit.
-    return false;
-  }
-
----------------
fhahn wrote:
Yep, removed as NFC in 282af2ddfcfa14a19e2cf596de370c2ead13d0a9
https://github.com/llvm/llvm-project/pull/137709
    
    
More information about the llvm-commits
mailing list