[llvm] [VPlan] Hook IR blocks into VPlan during skeleton creation (NFC) (PR #114292)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 25 13:29:30 PST 2024


================
@@ -8038,6 +8051,20 @@ EpilogueVectorizerEpilogueLoop::emitMinimumVectorEpilogueIterCountCheck(
   }
   ReplaceInstWithInst(Insert->getTerminator(), &BI);
   LoopBypassBlocks.push_back(Insert);
+
+  // A new entry block has been created for the epilogue VPlan. Hook it in.
----------------
fhahn wrote:

> Could this be done using replaceVPBBWithIRVPBB()?

I've simplified the code here and there should be nothing to merge at this point, I dropped the loop to remove the loop with VPIRInstructions. It may be possible to use `replaceVPBBWithIRVPBB` , but we still need to retrieve the new Block and update Entry. Left as is for now.

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


More information about the llvm-commits mailing list