summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/Analysis/TargetLibraryInfoTest.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-05-12 21:45:50 +0000
committerCraig Topper <craig.topper@gmail.com>2017-05-12 21:45:50 +0000
commitb1a71cac4bd5798b9ebc106ef886f46eb4ae648a (patch)
tree63dfcc5ad30d0a0ec3498f3626aeab00b71f679b /llvm/unittests/Analysis/TargetLibraryInfoTest.cpp
parent2579c7c69f08330951d947c51f6f6938f0fdc737 (diff)
downloadbcm5719-llvm-b1a71cac4bd5798b9ebc106ef886f46eb4ae648a.tar.gz
bcm5719-llvm-b1a71cac4bd5798b9ebc106ef886f46eb4ae648a.zip
[APInt] Add early outs for a division by 1 to udiv/urem/udivrem
We already counted the number of bits in the RHS so its pretty cheap to just check if the RHS is 1. Differential Revision: https://reviews.llvm.org/D33154 llvm-svn: 302953
Diffstat (limited to 'llvm/unittests/Analysis/TargetLibraryInfoTest.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud