Change LoopInstSimplify back to a LoopPass. It revisits subloops rather than
authorCameron Zwarich <zwarich@apple.com>
Wed, 5 Jan 2011 05:15:53 +0000 (05:15 +0000)
committerCameron Zwarich <zwarich@apple.com>
Wed, 5 Jan 2011 05:15:53 +0000 (05:15 +0000)
commite389ab16f3d98c2491dd2d8649b782203590a938
treeefb25e4b68662d595994525155bcb618f042413b
parentbe478819cb23806720aae6a794de543b12602be6
Change LoopInstSimplify back to a LoopPass. It revisits subloops rather than
skipping them, but it should probably use a worklist and only revisit those
instructions in subloops that have actually changed. It should probably also
use a worklist after the first iteration like instsimplify now does. Regardless,
it's only 0.3% of opt -O2 time on 403.gcc if it replaces the instcombine placed
in the middle of the loop passes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122868 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopInstSimplify.cpp