git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89145 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jim Grosbach 2009-11-17 21:37:04 +00:00
parent f04777b945
commit 5023095799

View File

@ -2603,8 +2603,8 @@ void LoopStrengthReduce::OptimizeLoopTermCond(Loop *L) {
bool LoopStrengthReduce::OptimizeLoopCountIVOfStride(const SCEV* &Stride,
IVStrideUse* &CondUse,
Loop *L) {
// If the only use is an icmp of an loop exiting conditional branch, then
// attempts the optimization.
// If the only use is an icmp of a loop exiting conditional branch, then
// attempt the optimization.
BasedUser User = BasedUser(*CondUse, SE);
assert(isa<ICmpInst>(User.Inst) && "Expecting an ICMPInst!");
ICmpInst *Cond = cast<ICmpInst>(User.Inst);