aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-ifs/llvm-ifs.cpp
diff options
context:
space:
mode:
authorserge-sans-paille <sguelton@mozilla.com>2022-12-26 08:51:47 +0100
committerserge-sans-paille <sguelton@mozilla.com>2023-01-12 12:08:01 +0100
commitbbe463d6ba268a2bfc45d539314b70cfd72d2360 (patch)
tree5fc1a1ad8b573aff1ccf176f1331451860344957 /llvm/tools/llvm-ifs/llvm-ifs.cpp
parent87e547d8f035c8de321e246629dd2b1ccec31662 (diff)
downloadllvm-bbe463d6ba268a2bfc45d539314b70cfd72d2360.zip
llvm-bbe463d6ba268a2bfc45d539314b70cfd72d2360.tar.gz
llvm-bbe463d6ba268a2bfc45d539314b70cfd72d2360.tar.bz2
[OptTable] Make ValuesCode initialisation of Options constexpr
Current implementation requires a copy of the initialization array to a vector to be able to modify their Values field. This is inefficient: it requires a large copy to update a value, while TableGen has all information to avoid this overwrite. Modify TableGen to emit the Values code and use it to perform the initialisation. The impact on performance is not amazing compared to the actual compilation, but still noticeable: https://llvm-compile-time-tracker.com/compare.php?from=d9ab3e82f30d646deff054230b0c742704a1cf26&to=f2b37fb65d5149f70b43d1801beb5239285a2a20&stat=instructions:u Differential Revision: https://reviews.llvm.org/D140699
Diffstat (limited to 'llvm/tools/llvm-ifs/llvm-ifs.cpp')
0 files changed, 0 insertions, 0 deletions