]> granicus.if.org Git - llvm/commit
[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)
commitd2329ac508f5812bcee3ef1cc90db95850afde22
tree02283b90c07f975a52ec29800bc01e7d9694502a
parent42fd905d6035a02f447d6646d5b011dc9404f408
[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.

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