forked from OSchip/llvm-project
parent
f049a68d78
commit
2ce2832c9b
|
@ -1102,7 +1102,7 @@ const SCEV *ScalarEvolution::getTruncateExpr(const SCEV *Op,
|
|||
return getTruncateOrZeroExtend(SZ->getOperand(), Ty);
|
||||
|
||||
// trunc(x1+x2+...+xN) --> trunc(x1)+trunc(x2)+...+trunc(xN) if we can
|
||||
// eliminate all the truncates, or we replace extensions with truncates.
|
||||
// eliminate all the truncates, or we replace other casts with truncates.
|
||||
if (const SCEVAddExpr *SA = dyn_cast<SCEVAddExpr>(Op)) {
|
||||
SmallVector<const SCEV *, 4> Operands;
|
||||
bool hasTrunc = false;
|
||||
|
|
Loading…
Reference in New Issue