llvm-svn: 89145
This commit is contained in:
Jim Grosbach 2009-11-17 21:37:04 +00:00
parent cdde77c6a3
commit 6bf5305f5d
1 changed files with 2 additions and 2 deletions

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);