[LoopIdiom] Use utility from SE instead of local rewriter
authoreopXD <eop.chen@sifive.com>
Wed, 15 Dec 2021 07:00:01 +0000 (23:00 -0800)
committereopXD <eop.chen@sifive.com>
Thu, 16 Dec 2021 04:46:49 +0000 (20:46 -0800)
commitecb3ae524e5c4f0b61500763de8e0a572554bb38
treefdd9c29d0841aa07bf078c3b9e9812d10eb54c20
parente76043ac643c511d1d5334216faf672ac22dc8cd
[LoopIdiom] Use utility from SE instead of local rewriter

ScalarEvolution::applyLoopGuards shall do the work.

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D115784
llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp