Index: lib/Analysis/ScalarEvolution.cpp =================================================================== --- lib/Analysis/ScalarEvolution.cpp +++ lib/Analysis/ScalarEvolution.cpp @@ -1318,12 +1318,12 @@ } // If the input value is a chrec scev, truncate the chrec's operands. - if (const SCEVAddRecExpr *AddRec = dyn_cast(Op)) { - SmallVector Operands; - for (const SCEV *Op : AddRec->operands()) - Operands.push_back(getTruncateExpr(Op, Ty, Depth + 1)); - return getAddRecExpr(Operands, AddRec->getLoop(), SCEV::FlagAnyWrap); - } +// if (const SCEVAddRecExpr *AddRec = dyn_cast(Op)) { +// SmallVector Operands; +// for (const SCEV *Op : AddRec->operands()) +// Operands.push_back(getTruncateExpr(Op, Ty, Depth + 1)); +// return getAddRecExpr(Operands, AddRec->getLoop(), SCEV::FlagAnyWrap); +// } // The cast wasn't folded; create an explicit cast node. We can reuse // the existing insert position since if we get here, we won't have