Currently, all GEP addrecs go through the generic createAddRecFromPHI() code. I think it would make sense to support at least basic constant increment GEPs in createSimpleAffineAddRec(), which is what this patch implements.
This gives a pretty small compile-time improvement: http://llvm-compile-time-tracker.com/compare.php?from=f30f34e6ba411c43315f9065860a51c23ce4136a&to=446d1e1504232493002f3b7c4d436e35e5965c86&stat=instructions:u Maybe it's not worth it.
Any reason why not NSW?