[llvm] [VPlan] Simplify Plan's entry in removeBranchOnConst. (PR #154510)
    via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Sep 16 00:21:52 PDT 2025
    
    
  
================
@@ -1723,7 +1739,21 @@ void LoopVectorizationPlanner::updateLoopMetadataAndProfileInfo(
   // For scalable vectorization we can't know at compile time how many
   // iterations of the loop are handled in one vector iteration, so instead
   // use the value of vscale used for tuning.
-  setProfileInfoAfterUnrolling(OrigLoop, VectorLoop, OrigLoop, EstimatedVFxUF);
+  if (OrigAverageTripCount) {
----------------
ayalz wrote:
Early exit, as originally in llvm::setProfileInfoAfterUnrolling()?
https://github.com/llvm/llvm-project/pull/154510
    
    
More information about the llvm-commits
mailing list