Skip to content

Commit

Permalink
Revert "[RISCV] Temporarily move riscv-expand-pseudo pass to PreEmitP…
Browse files Browse the repository at this point in the history
…ass2"

This reverts commit 05a20a9.
  • Loading branch information
luismarques committed Jul 1, 2020
1 parent 1276855 commit a61fa1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/lib/Target/RISCV/RISCVTargetMachine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,12 +168,11 @@ bool RISCVPassConfig::addGlobalInstructionSelect() {
return false;
}

void RISCVPassConfig::addPreSched2() { }
void RISCVPassConfig::addPreSched2() { addPass(createRISCVExpandPseudoPass()); }

void RISCVPassConfig::addPreEmitPass() { addPass(&BranchRelaxationPassID); }

void RISCVPassConfig::addPreEmitPass2() {
addPass(createRISCVExpandPseudoPass());
// Schedule the expansion of AMOs at the last possible moment, avoiding the
// possibility for other passes to break the requirements for forward
// progress in the LR/SC block.
Expand Down

0 comments on commit a61fa1a

Please sign in to comment.