diff options
author | peter klausler <pklausler@nvidia.com> | 2020-09-30 12:26:25 -0700 |
---|---|---|
committer | peter klausler <pklausler@nvidia.com> | 2020-10-01 15:49:27 -0700 |
commit | e99d184d54937b56d5f4f1ba06fb984019beaee1 (patch) | |
tree | 40fe4105840b055d52881e829dd8bac9d1cb6237 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 5402d11b1d8853ff10417b0f8d32edde3f4a51c0 (diff) | |
download | llvm-e99d184d54937b56d5f4f1ba06fb984019beaee1.zip llvm-e99d184d54937b56d5f4f1ba06fb984019beaee1.tar.gz llvm-e99d184d54937b56d5f4f1ba06fb984019beaee1.tar.bz2 |
[flang] Readability improvement in binary->decimal conversion
Tweak binary->decimal conversions to avoid an integer multiplication
in a hot loop to improve readability and get a minor (~5%) speed-up.
Use native integer division by constants for more readability, too,
since current build compilers seem to optimize it correctly now.
Delete the now needless temporary work-around facility in
Common/unsigned-const-division.h.
Differential revision: https://reviews.llvm.org/D88604
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions