[llvm] 9f6f26f - [LSR][IndVarSimplify] Update assertion message (#192168)

via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 18:10:16 PDT 2026


Author: Aiden Grossman
Date: 2026-04-15T01:10:11Z
New Revision: 9f6f26f86cf1899402da83a9b35e0fab55fa2a4f

URL: https://github.com/llvm/llvm-project/commit/9f6f26f86cf1899402da83a9b35e0fab55fa2a4f
DIFF: https://github.com/llvm/llvm-project/commit/9f6f26f86cf1899402da83a9b35e0fab55fa2a4f.diff

LOG: [LSR][IndVarSimplify] Update assertion message (#192168)

rewriteLoopExitValues is called by both LSR and IndVarSimplify. Update
the assertion message to match this reality rather than only mentioning
IndVarSimplify.

Added: 
    

Modified: 
    llvm/lib/Transforms/Utils/LoopUtils.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Utils/LoopUtils.cpp b/llvm/lib/Transforms/Utils/LoopUtils.cpp
index 7573467917c73..62c3b477bb9b8 100644
--- a/llvm/lib/Transforms/Utils/LoopUtils.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUtils.cpp
@@ -1733,7 +1733,7 @@ int llvm::rewriteLoopExitValues(Loop *L, LoopInfo *LI, TargetLibraryInfo *TLI,
                                 SmallVector<WeakTrackingVH, 16> &DeadInsts) {
   // Check a pre-condition.
   assert(L->isRecursivelyLCSSAForm(*DT, *LI) &&
-         "Indvars did not preserve LCSSA!");
+         "Caller did not preserve LCSSA!");
 
   SmallVector<BasicBlock*, 8> ExitBlocks;
   L->getUniqueExitBlocks(ExitBlocks);


        


More information about the llvm-commits mailing list