Revert "[LSR] Hoist IVInc to loop header if its all uses are in the loop header"
authorchenglin.bi <chenglin.bi@linaro.org>
Tue, 10 Jan 2023 17:24:34 +0000 (01:24 +0800)
committerchenglin.bi <chenglin.bi@linaro.org>
Tue, 10 Jan 2023 17:24:34 +0000 (01:24 +0800)
commitb84ab1f7c9b87cb0a0bea26dc4299c4fd19df548
tree9cef523a9165c50c390ce5f3d6a170420285dcb7
parent36117cc46388d677359f1180bd536f80d0c5fe97
Revert "[LSR] Hoist IVInc to loop header if its all uses are in the loop header"
The original commit seems to cause a regression in numba test.
This reverts commit b1b4758e7f4b2ffe1faa28b00eb037832e5d26a7.
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
llvm/test/Transforms/LoopStrengthReduce/AArch64/pr53625.ll