[llvm] [BOLT] skip instruction shortening (PR #93032)

Rafael Auler via llvm-commits llvm-commits at lists.llvm.org
Wed May 29 10:31:39 PDT 2024


================
@@ -370,7 +375,7 @@ Error BinaryFunctionPassManager::runAllPasses(BinaryContext &BC) {
   else if (opts::Hugify)
     Manager.registerPass(std::make_unique<HugePage>(NeverPrint));
 
-  Manager.registerPass(std::make_unique<ShortenInstructions>(NeverPrint));
+  Manager.registerPass(std::make_unique<ShortenInstructions>(NeverPrint),opts::ShortenInstructions);
----------------
rafaelauler wrote:

Use clang-format on this line to get correct formatting (it's missing a space after comma). Remember not to format the entire file, just your changes.

https://github.com/llvm/llvm-project/pull/93032


More information about the llvm-commits mailing list