Address most of Duncan's review comments. Also, make LoopInstSimplify a simple
authorCameron Zwarich <zwarich@apple.com>
Tue, 4 Jan 2011 00:12:46 +0000 (00:12 +0000)
committerCameron Zwarich <zwarich@apple.com>
Tue, 4 Jan 2011 00:12:46 +0000 (00:12 +0000)
commita1cb585384f593517a9b8f48693f5e478b833fba
treedbfd60468a1bfb235f98b605f0198afc17bf5e00
parent7c90b90f4e9b0c421f0e45d7de03f6edce113a90
Address most of Duncan's review comments. Also, make LoopInstSimplify a simple
FunctionPass. It probably doesn't have a reason to be a LoopPass, as it will
probably drop the simple fixed point and either use RPO iteration or Duncan's
approach in instsimplify of only revisiting instructions that have changed.

The next step is to preserve LoopSimplify. This looks like it won't be too hard,
although the pass manager doesn't actually seem to respect when non-loop passes
claim to preserve LCSSA or LoopSimplify. This will have to be fixed.

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