aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorMircea Trofin <mtrofin@google.com>2022-01-31 14:43:03 -0800
committerMircea Trofin <mtrofin@google.com>2022-01-31 15:19:15 -0800
commit9aa2c914b9710f97a9362c10c08aa11cf2df6ce1 (patch)
treef4d8841bc19f5c74e37308796e808309672ce7fc /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent186dcd4aab77f45552252a3b17cd16a6d8b32233 (diff)
downloadllvm-9aa2c914b9710f97a9362c10c08aa11cf2df6ce1.zip
llvm-9aa2c914b9710f97a9362c10c08aa11cf2df6ce1.tar.gz
llvm-9aa2c914b9710f97a9362c10c08aa11cf2df6ce1.tar.bz2
[mlgo][regalloc] Factor live interval feature calculation
Factoring it out so we can subsequently cache it. This should be a NFC, however, for the float quantities, we see small errors in the least significant digits. This is because, before, we were summing up one by one. Now, we sum up results of sums. This shouldn't matter for ML, and will require rework when we do quantization (avoiding floats altogether), but meanwhile, it did require an update to the reference file used for testing. The patch also bumps the precision of the variables involved in this, to reduce the error (note they are casted back to float at the end by the SET macro, since we only work with float and not double in TF) Differential Revision: https://reviews.llvm.org/D118659
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions