This patch may seem familiar... but my previous patch handled the equivalent lsls+and, not this case. Usually instcombine puts the "and" after the shift, so this case doesn't come up. However, if the shift is generated by lowering a GEP, it won't get canonicalized by instcombine, and DAGCombine doesn't have an equivalent transform.
This also modifies isDesirableToCommuteWithShift to suppress DAGCombine transforms which would make the overall code worse after this transform.
I'm not really happy adding a bunch of code to handle this, but it would probably be tricky to substantially improve the behavior of the target-independent DAGCombine here.
isThumb1Only implies isThumb already?