[llvm] 6d70812 - [SCEV] Clarify ControlsExit comment (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 14 02:38:20 PDT 2023


Author: Nikita Popov
Date: 2023-03-14T10:38:11+01:00
New Revision: 6d70812789c2583333c25ff15c5e2b166d66ce1b

URL: https://github.com/llvm/llvm-project/commit/6d70812789c2583333c25ff15c5e2b166d66ce1b
DIFF: https://github.com/llvm/llvm-project/commit/6d70812789c2583333c25ff15c5e2b166d66ce1b.diff

LOG: [SCEV] Clarify ControlsExit comment (NFC)

ControlsExit implies a single exit branch.

Added: 
    

Modified: 
    llvm/include/llvm/Analysis/ScalarEvolution.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Analysis/ScalarEvolution.h b/llvm/include/llvm/Analysis/ScalarEvolution.h
index ee1f2eabc77a..a91545e26beb 100644
--- a/llvm/include/llvm/Analysis/ScalarEvolution.h
+++ b/llvm/include/llvm/Analysis/ScalarEvolution.h
@@ -1133,7 +1133,7 @@ class ScalarEvolution {
   /// Compute the number of times the backedge of the specified loop will
   /// execute if its exit condition were a conditional branch of ExitCond.
   ///
-  /// \p ControlsExit is true if ExitCond directly controls the exit
+  /// \p ControlsExit is true if ExitCond directly controls the only exit
   /// branch. In this case, we can assume that the loop exits only if the
   /// condition is true and can infer that failing to meet the condition prior
   /// to integer wraparound results in undefined behavior.


        


More information about the llvm-commits mailing list