[APInt] In udivrem, remember the bit width in a local variable so we don't reread...
authorCraig Topper <craig.topper@gmail.com>
Fri, 12 May 2017 21:45:44 +0000 (21:45 +0000)
committerCraig Topper <craig.topper@gmail.com>
Fri, 12 May 2017 21:45:44 +0000 (21:45 +0000)
commit2579c7c69f08330951d947c51f6f6938f0fdc737
tree97ed8f03083fd7ae8f71783fb8058f8089e1fbe1
parent1fa362f8119cab531de85c580a558fa520acc255
[APInt] In udivrem, remember the bit width in a local variable so we don't reread it from the LHS which might be aliased with Quotient or Remainder.

This helped the compiler generate better code for the single word case. It was able to remember that the bit width was still a single word when it created the Remainder APInt and not create code for it possibly being multiword.

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