Zero-width BFEs are combined away already, so there's no point in
handling them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219868
91177308-0d34-0410-b5e6-
96231b3b80d8
unsigned BitWidth = 32;
uint32_t Width = CWidth->getZExtValue() & 0x1f;
- if (Width == 0) {
- KnownZero = APInt::getAllOnesValue(BitWidth);
- KnownOne = APInt::getNullValue(BitWidth);
- return;
- }
// FIXME: This could do a lot more. If offset is 0, should be the same as
// sign_extend_inreg implementation, but that involves duplicating it.