diff options
Diffstat (limited to 'src/tools/optimization-options.h')
-rw-r--r-- | src/tools/optimization-options.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tools/optimization-options.h b/src/tools/optimization-options.h index 53fd60e4d..4b8bfc139 100644 --- a/src/tools/optimization-options.h +++ b/src/tools/optimization-options.h @@ -96,6 +96,11 @@ struct OptimizationOptions : public ToolOptions { Options::Arguments::Zero, [this](Options*, const std::string&) { passOptions.ignoreImplicitTraps = true; + }) + .add("--low-memory-unused", "-lmu", "Optimize under the helpful assumption that the low 1K of memory is not used by the application", + Options::Arguments::Zero, + [this](Options*, const std::string&) { + passOptions.lowMemoryUnused = true; }); // add passes in registry for (const auto& p : PassRegistry::get()->getRegisteredNames()) { |