[LI] Add a cover function for checking if a loop is mustprogress [nfc]
authorPhilip Reames <listmail@philipreames.com>
Thu, 10 Jun 2021 20:36:14 +0000 (13:36 -0700)
committerPhilip Reames <listmail@philipreames.com>
Thu, 10 Jun 2021 20:37:32 +0000 (13:37 -0700)
commit7629b2a09c169bfd7f7295deb3678f3fa7755eee
treed54de67671d53c0d022e2635d5142365a3c4bd21
parent859c924c5fd58865e824b02c8bea40e7cb55456e
[LI] Add a cover function for checking if a loop is mustprogress [nfc]

Essentially, the cover function simply combines the loop level check and the function level scope into one call.  This simplifies several callers and is (subjectively) less error prone.
llvm/include/llvm/Analysis/LoopInfo.h
llvm/lib/Analysis/LoopInfo.cpp
llvm/lib/Analysis/ScalarEvolution.cpp
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
llvm/lib/Transforms/Utils/LoopUtils.cpp