APInt: udivrem should use machine instructions for single-word APInts
authorDavid Majnemer <david.majnemer@gmail.com>
Sun, 14 Dec 2014 09:41:56 +0000 (09:41 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Sun, 14 Dec 2014 09:41:56 +0000 (09:41 +0000)
commita53d2268a99d2cf166f4410102cfa85ff945dffe
treec753737cb6cec5eddabe7f394b9c97c088b61195
parentfabf5cc5d978c9ad9d9131e7f94714b3aba9dec8
APInt: udivrem should use machine instructions for single-word APInts

This mirrors the behavior of APInt::udiv and APInt::urem.  Some
architectures, like X86, have a single instruction which can compute
both division and remainder.

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