[Reassociate] Teach ConvertShiftToMul to preserve nsw flag if the shift amount is not bitwidth - 1.
Multiply and shl have different signed overflow behavior in some cases. But it looks like we should be ok as long as the shift amount is less than bitwidth - 1. Alive2: http://volta.cs.utah.edu:8080/z/MM4WZP Differential Revision: https://reviews.llvm.org/D81189
Loading
Please sign in to comment