[llvm] [VPlan] Connect Entry to scalar preheader during initial construction. (PR #140132)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri May 23 07:46:18 PDT 2025
================
@@ -490,7 +490,7 @@ class InnerLoopVectorizer {
MinProfitableTripCount(MinProfitableTripCount), UF(UnrollFactor),
Builder(PSE.getSE()->getContext()), Cost(CM), BFI(BFI), PSI(PSI),
RTChecks(RTChecks), Plan(Plan),
- VectorPHVPB(Plan.getEntry()->getSingleSuccessor()) {}
+ VectorPHVPB(Plan.getEntry()->getSuccessors()[1]) {}
----------------
fhahn wrote:
Updated to get the single predecessor of the vector loop region, which should be clearer, thanks
https://github.com/llvm/llvm-project/pull/140132
More information about the llvm-commits
mailing list