OSDN Git Service

[SCEV] Revise a method description to match actual behavior [NFC]
authorPhilip Reames <listmail@philipreames.com>
Wed, 19 Jun 2019 19:23:19 +0000 (19:23 +0000)
committerPhilip Reames <listmail@philipreames.com>
Wed, 19 Jun 2019 19:23:19 +0000 (19:23 +0000)
commit4d4872e62fe7efa418356cce61563412c0a188f2
treed063c644d962067ce8fa5061135b1b842cc56060
parent3e7c8a9acd57a6e5bad810b819181fd2927a744b
[SCEV] Revise a method description to match actual behavior [NFC]

Reword the ScalarEvolution::getExitCount comment in the same terminology as used by getBackedgeTakenCount since they're equivelent for single exit loops.  Also, strengthen the comment to indicate exiting on the exact iteration specified is guaranteed.  Several transforms implicitly rely on this; and the actual implementation checks for it (via dominating latch checks).  So, spell out the guarantee in the comment.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363867 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ScalarEvolution.h