mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
Add a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100874 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
666f8cb9b7
commit
53b73a283e
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user