File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -999,15 +999,15 @@ static void findForkedSCEVs(
999
999
break ;
1000
1000
}
1001
1001
1002
+ Type *PtrTy = GEP->getPointerOperandType ();
1002
1003
for (auto [B, O] : zip (BaseScevs, OffsetScevs)) {
1003
1004
const SCEV *Base = get<0 >(B);
1004
1005
const SCEV *Offset = get<0 >(O);
1005
1006
1006
1007
// Scale up the offsets by the size of the type, then add to the bases.
1007
- const SCEV *Scaled = SE->getTruncateOrSignExtend (
1008
- SE->getMulExpr (SE->getSizeOfExpr (Offset->getType (), SourceTy),
1009
- Offset),
1010
- Base->getType ());
1008
+ const SCEV *Scaled =
1009
+ SE->getMulExpr (SE->getSizeOfExpr (PtrTy, SourceTy),
1010
+ SE->getTruncateOrSignExtend (Offset, PtrTy));
1011
1011
ScevList.emplace_back (SE->getAddExpr (Base, Scaled), NeedsFreeze);
1012
1012
}
1013
1013
break ;
You can’t perform that action at this time.
0 commit comments