We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 364963a commit e2d4823Copy full SHA for e2d4823
bolt/lib/Rewrite/BinaryPassManager.cpp
@@ -377,8 +377,9 @@ Error BinaryFunctionPassManager::runAllPasses(BinaryContext &BC) {
377
378
Manager.registerPass(std::make_unique<NormalizeCFG>(PrintNormalized));
379
380
- Manager.registerPass(std::make_unique<StripRepRet>(NeverPrint),
381
- opts::StripRepRet);
+ if (BC.isX86())
+ Manager.registerPass(std::make_unique<StripRepRet>(NeverPrint),
382
+ opts::StripRepRet);
383
384
Manager.registerPass(std::make_unique<IdenticalCodeFolding>(PrintICF),
385
opts::ICF);
0 commit comments