[KnownBits] Handle shifts over wide types
authorNikita Popov <npopov@redhat.com>
Tue, 16 May 2023 09:23:40 +0000 (11:23 +0200)
committerNikita Popov <npopov@redhat.com>
Tue, 16 May 2023 09:26:39 +0000 (11:26 +0200)
commit0b81ff3ac50ac4900033c0dde7518a7199d101ae
tree00708369d5d8e8654b1e7e3cc9d0c96ecbd0974a
parentbba9209f1d198efc7e492f0e273fff0b0a5ef060
[KnownBits] Handle shifts over wide types

Do not assert if the bit width is larger than 64 bits. This case
is currently hidden from the IR layer by other checks, but gets
exposed with future changes.
llvm/lib/Support/KnownBits.cpp
llvm/unittests/Support/KnownBitsTest.cpp