Peter Rong
|
ee31a4a702
|
[ARM] IselLowering unsigned overflow to crash using APInt in PerformSHLSimplify
This diff fixes issue https://github.com/llvm/llvm-project/issues/59317
We should check if bitwidth is lower than the shift amount before we subtract them to avoid unsigned overflow.
Reviewed By: dmgreen
Differential Revision: https://reviews.llvm.org/D139238
|
2022-12-06 09:58:27 -08:00 |
|