restructure this a bit. Initialize the WeakVH with "I", the
authorChris Lattner <sabre@nondot.org>
Tue, 4 Jan 2011 07:27:30 +0000 (07:27 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 4 Jan 2011 07:27:30 +0000 (07:27 +0000)
commitb7e9ef0ed1e246bd64d97a768555c8334c0d86e9
tree51cd09d1d636f40cbe3bc5783bec88db1cf7aa15
parent645b1d2f12e6637840d3b118231f60b3a587073a
restructure this a bit.  Initialize the WeakVH with "I", the
instruction *after* the store.  The store will always be deleted
if the transformation kicks in, so we'd do an N^2 scan of every
loop block.  Whoops.

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