[KnownBits] Merge the minimum shift amount and leading/trailing shift value bits...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 13 Nov 2020 16:25:44 +0000 (16:25 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Fri, 13 Nov 2020 16:40:20 +0000 (16:40 +0000)
commit27e9f0f95ef7b144d008bc1cf1459dced6cb5842
treeccf8d37ddf97935e3f8df7fbc34f2b80d81f9d57
parent46ca880fcae24693d381ca05c16c704675545433
[KnownBits] Merge the minimum shift amount and leading/trailing shift value bits handling.

By starting with the source shift value minimum leading/trailing bits, we can then add the minimum known shift amount to more accurately predict the minimum leading/trailing bits of the result.

This is currently only covered by the exhaustive unit tests in KnownBitsTests.cpp, but will help with some of the regressions encountered in D90479 (PR44526).
llvm/lib/Support/KnownBits.cpp