During calculation of the reference cost, possible type differences between the Stride and TripCount are not taken into account, which can result in assertion failure in ScalarEvolution::getMulExpr that the operand types do not match.
This patch addresses this issue.
const Type *WiderType?