aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CommandFlags.cpp
diff options
context:
space:
mode:
authorpeter klausler <pklausler@nvidia.com>2021-08-02 14:37:40 -0700
committerpeter klausler <pklausler@nvidia.com>2021-08-04 12:19:23 -0700
commit4876520eef34f517075fed9007dc8b3162d67d1a (patch)
tree5125481fabd927bdf439b6aaa2cdc6a5145cd2f6 /llvm/lib/CodeGen/CommandFlags.cpp
parent617be2756fd0e0d943d082e8f86309c4133ce64b (diff)
downloadllvm-4876520eef34f517075fed9007dc8b3162d67d1a.zip
llvm-4876520eef34f517075fed9007dc8b3162d67d1a.tar.gz
llvm-4876520eef34f517075fed9007dc8b3162d67d1a.tar.bz2
[flang] runtime: For Fw.d formatting, don't oscillate forever
The algorithm for Fw.d output will drive binary to decimal conversion for an initial fixed number of digits, then adjust that number based on the result's exposent. For value close to a power of ten, this adjustment process wouldn't terminate; e.g., formatting 9.999 as F10.2 would start with 1e2, boost the digits to 2, get 9.99e1, decrease the digits, and loop. Solve by refusing to boost the digits a second time. Differential Revision: https://reviews.llvm.org/D107490
Diffstat (limited to 'llvm/lib/CodeGen/CommandFlags.cpp')
0 files changed, 0 insertions, 0 deletions