The PrepareForLTO stage of LoopRotate tries to avoid unrolling loops
with calls that might be inlined later. See D94232 where this was
introduced.
We didn't catch all occurances of the LoopRotatePass in the New Pass
Manager, so the original regression in astar returned with the pass
manager switch.
nit: The helper specifically checks for the 'pre-lto' stage, might be good to clarify in the comment, e.g. something like Helper to check if the current compilation phase is preparing for LTO