mirror of
https://github.com/intel/llvm.git
synced 2026-02-02 01:30:24 +08:00
When an overflow happens during shift left, i.e. the last sign bit or the most significant data bit gets shifted out, the current approach of inferring the range of results does not work anymore. This patch checks for possible overflow and returns the max range in that case. Fix https://github.com/llvm/llvm-project/issues/82158
Multi-Level Intermediate Representation
See https://mlir.llvm.org/ for more information.