1-c step of https://reviews.llvm.org/D146903
We can attach NSW on the addition and multiplication of LinearMap from the switch if the values are monotonic.
alive proofs: https://alive2.llvm.org/ce/z/F8mZUf
Note: SwitchToLookUpTable is inherently target-independent except for BitMap patterns, which embed the values into one register. It might be better to separate independent tests from target-specific test cases also.
I would drop the Inc var and directly write
here.