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.
Paths
| Differential D89232
[GlobalISel][KnownBits] Early return on out of bound shift amounts ClosedPublic Authored by kschwarz on Oct 12 2020, 4:22 AM.
Details Summary 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 TestsFailed Event TimelineThis revision is now accepted and ready to land.Oct 12 2020, 8:58 AM This revision was landed with ongoing or failed builds.Oct 12 2020, 9:39 AM Closed by commit rG734112343917: [GlobalISel][KnownBits] Early return on out of bound shift amounts (authored by kschwarz). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 297603 llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
llvm/unittests/CodeGen/GlobalISel/KnownBitsTest.cpp
|
clang-format not found in user's PATH; not linting file.