summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2019-04-19 02:06:06 +0000
committerFangrui Song <maskray@google.com>2019-04-19 02:06:06 +0000
commitacc7641bcb9df243e7c2e0e8c4636929e21642e8 (patch)
treed83e501952ef4e055f288699cbb06b59aeac0fee /llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
parent9206335e9d100e65f85a73168400875839405f20 (diff)
downloadbcm5719-llvm-acc7641bcb9df243e7c2e0e8c4636929e21642e8.tar.gz
bcm5719-llvm-acc7641bcb9df243e7c2e0e8c4636929e21642e8.zip
[APInt] Optimize umul_ov
Change two costly udiv() calls to lshr(1)*RHS + left-shift + plus On one 64-bit umul_ov benchmark, I measured an obvious improvement: 12.8129s -> 3.6257s Note, there may be some value to special case 64-bit (the most common case) with __builtin_umulll_overflow(). Differential Revision: https://reviews.llvm.org/D60669 llvm-svn: 358730
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud