Split the optimizations in CodeGenPrepare that don't manipulate the iterators
authorCameron Zwarich <zwarich@apple.com>
Thu, 6 Jan 2011 02:37:26 +0000 (02:37 +0000)
committerCameron Zwarich <zwarich@apple.com>
Thu, 6 Jan 2011 02:37:26 +0000 (02:37 +0000)
commitc061101e03ef6d2ca550f8fe71594a5e1c02e348
tree117569fa337dbba37805b5a1fb058ab2d3e4df4d
parent19bb35db1fd8173af438d11338a52870ce71d1b7
Split the optimizations in CodeGenPrepare that don't manipulate the iterators
into a separate function, so that it can be called from a loop using a worklist
rather than a loop traversing a whole basic block.

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