[LoopFlatten] Address FIXME about getTripCountFromExitCount. NFC.
authorSjoerd Meijer <sjoerd.meijer@arm.com>
Mon, 24 Jan 2022 12:54:16 +0000 (12:54 +0000)
committerSjoerd Meijer <sjoerd.meijer@arm.com>
Mon, 24 Jan 2022 13:46:19 +0000 (13:46 +0000)
commitada6d78a7802f8057f1ab7cee0bed25f91fcc4b4
treedf9d6e39fbfe36c42a7eca64f019f84799173863
parentf6ac8088b0e890765974fee5f5820a340736f9bf
[LoopFlatten] Address FIXME about getTripCountFromExitCount. NFC.

Together with the previous commit which mainly documents better LoopFlatten's
overall strategy, this addresses a concern added as a FIXME comment in D110587;
the code refactoring (NFC) introduces functions (also for the SCEV usage) to
make this clearer.
llvm/lib/Transforms/Scalar/LoopFlatten.cpp