If the known shift amount is bigger than or equal to the bitwidth of the type of the value to be shifted,
the result is target dependent, so don't try to infer any bits.
This fixes a crash we've seen in one of our internal test suites.
Differential D89232
[GlobalISel][KnownBits] Early return on out of bound shift amounts kschwarz on Oct 12 2020, 4:22 AM. Authored by
Details If the known shift amount is bigger than or equal to the bitwidth of the type of the value to be shifted, This fixes a crash we've seen in one of our internal test suites.
Diff Detail
Unit Tests Event Timeline |
clang-format not found in user's PATH; not linting file.