[IndVars][NFC] Factor out condition creation in optimizeLoopExitWithUnknownExitCount
authorMax Kazantsev <mkazantsev@azul.com>
Mon, 26 Dec 2022 08:00:27 +0000 (15:00 +0700)
committerMax Kazantsev <mkazantsev@azul.com>
Mon, 26 Dec 2022 08:00:27 +0000 (15:00 +0700)
commitdf8cedfc3d2f4f5848f520b92e10f402c6a8561b
treeaf1b410a0630c843390f7db10086407632ce3191
parentd02c3b1358b32e3c38b0001e65434e1d097b28d7
[IndVars][NFC] Factor out condition creation in optimizeLoopExitWithUnknownExitCount

This is a preparation step to support optimization of conditions that are not immediately ICmp.
llvm/lib/Transforms/Scalar/IndVarSimplify.cpp