]> granicus.if.org Git - llvm/commit
[APInt] Remove unnecessary checks of rhsWords==1 with lhsWords==1 from udiv and udivr...
authorCraig Topper <craig.topper@gmail.com>
Fri, 12 May 2017 18:18:57 +0000 (18:18 +0000)
committerCraig Topper <craig.topper@gmail.com>
Fri, 12 May 2017 18:18:57 +0000 (18:18 +0000)
commite2c79618d4ab3b2e89bbbe681caf56c4a708611c
tree82ebfb9817e1ff3aa12409d0e455a76a8e21dc16
parent593d52aaadf1b6d442ce24bfdc53d8c6b1b91efe
[APInt] Remove unnecessary checks of rhsWords==1 with lhsWords==1 from udiv and udivrem. NFC

At this point in the code rhsWords is guaranteed to be non-zero and less than or equal to lhsWords. So if lhsWords is 1, rhsWords must also be 1. urem alread had the check removed so this makes all 3 consistent.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302930 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/APInt.cpp