Teach indvars to generate nsw/nuw flags when widening an induction variable.

Fixes PR16600.