Add a comment.

llvm-svn: 100874
This commit is contained in:
Dan Gohman 2010-04-09 18:20:03 +00:00
parent b10646d4ce
commit 394b624215
1 changed files with 2 additions and 1 deletions

View File

@ -705,7 +705,8 @@ Value *SCEVExpander::visitAddExpr(const SCEVAddExpr *S) {
Sum = expandAddToGEP(NewOps.begin(), NewOps.end(), PTy, Ty, Sum);
} else if (const PointerType *PTy = dyn_cast<PointerType>(Op->getType())) {
// The running sum is an integer, and there's a pointer at this level.
// Try to form a getelementptr.
// Try to form a getelementptr. Use a SCEVUnknown so that we don't
// re-analyze the instructions that we just emitted.
SmallVector<const SCEV *, 4> NewOps;
NewOps.push_back(SE.getUnknown(Sum));
for (++I; I != E && I->first == CurLoop; ++I)