[K/N] Make overridden runtime variables available during stdlib lto

This commit is contained in:
Pavel Kunyavskiy
2022-06-09 16:28:10 +02:00
committed by Space
parent ee2340842c
commit a07066f98b
3 changed files with 28 additions and 27 deletions
@@ -27,7 +27,7 @@ using string_view = std::experimental::string_view;
/**
* There are two ways, how compiler can define variables for runtime usage. This one, and the other one with details in source file.
*
* This is one is variables defined by setRuntimeConstGlobals in IrToBitcode.kt. They are eligible for runtime optimizations,
* This is one is variables defined by generateRuntimeConstantsModule in IrToBitcode.kt. They are eligible for runtime optimizations,
* and fixed at the point of compiling caches. So use this way for variables, which are heavily used on performance-critical passes or
* will significantly increase code size, if not eliminated.
*