Skip to content

Commit 445023f

Browse files
authored
Revert "[BOLT] Move ADRRelaxationPass (llvm#101371)" (llvm#102333)
This reverts commit 750b12f. The pass should run after splitting phase, but before nop removal
1 parent 62e894e commit 445023f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bolt/lib/Rewrite/BinaryPassManager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,8 +357,6 @@ Error BinaryFunctionPassManager::runAllPasses(BinaryContext &BC) {
357357

358358
Manager.registerPass(
359359
std::make_unique<VeneerElimination>(PrintVeneerElimination));
360-
361-
Manager.registerPass(std::make_unique<ADRRelaxationPass>());
362360
}
363361

364362
if (BC.isRISCV()) {
@@ -492,6 +490,8 @@ Error BinaryFunctionPassManager::runAllPasses(BinaryContext &BC) {
492490
Manager.registerPass(std::make_unique<ReorderData>());
493491

494492
if (BC.isAArch64()) {
493+
Manager.registerPass(std::make_unique<ADRRelaxationPass>());
494+
495495
// Tighten branches according to offset differences between branch and
496496
// targets. No extra instructions after this pass, otherwise we may have
497497
// relocations out of range and crash during linking.

0 commit comments

Comments
 (0)