[APInt] Modify tcMultiplyPart's overflow detection to not depend on 'i' from the...
authorCraig Topper <craig.topper@gmail.com>
Mon, 8 May 2017 06:34:41 +0000 (06:34 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 8 May 2017 06:34:41 +0000 (06:34 +0000)
commitc96a84d813925c30f516030c259fac0b4375e6e3
tree37de9ed2cb5a049ba912cbf4fda67b72229158bb
parent0cbab7cc7ab328b26bc26356b8fd0fd0f3816d19
[APInt] Modify tcMultiplyPart's overflow detection to not depend on 'i' from the earlier loop. NFC

The value of 'i' is always the smaller of DstParts and SrcParts so we can just use that fact to write all the code in terms of SrcParts and DstParts.

llvm-svn: 302408
llvm/lib/Support/APInt.cpp