[llvm-commits] [llvm] r122574 - /llvm/trunk/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
Frits van Bommel
fvbommel at gmail.com
Sun Dec 26 18:48:49 PST 2010
On Mon, Dec 27, 2010 at 1:03 AM, Chris Lattner <sabre at nondot.org> wrote:
> -
> - MadeChange |= processLoopStore(SI, BECount);
> + WeakVH InstPtr;
Shouldn't InstPtr be initialized to something? (Say, SI?)
> + if (processLoopStore(SI, BECount)) {
You're no longer setting MadeChange.
> + // If processing the store invalidated our iterator, start over from the
> + // head of the loop.
> + if (InstPtr == 0)
> + I = BB->begin();
> + }
> }
>
> return MadeChange;
More information about the llvm-commits
mailing list