forked from OSchip/llvm-project
[mips] Always run the MipsOptimizePICCall pass.
Summary: Remove this pass from addMachineSSAOptimization() and register it unconditionally in through addPreRegAlloc(). This pass is required for generating correct PIC calls. Reviewers: sdardis Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D26036 llvm-svn: 285814
This commit is contained in:
parent
bef3621ad0
commit
e3bb72ea78
|
@ -208,7 +208,6 @@ public:
|
|||
|
||||
void addIRPasses() override;
|
||||
bool addInstSelector() override;
|
||||
void addMachineSSAOptimization() override;
|
||||
void addPreEmitPass() override;
|
||||
|
||||
void addPreRegAlloc() override;
|
||||
|
@ -237,14 +236,8 @@ bool MipsPassConfig::addInstSelector() {
|
|||
return false;
|
||||
}
|
||||
|
||||
void MipsPassConfig::addMachineSSAOptimization() {
|
||||
addPass(createMipsOptimizePICCallPass(getMipsTargetMachine()));
|
||||
TargetPassConfig::addMachineSSAOptimization();
|
||||
}
|
||||
|
||||
void MipsPassConfig::addPreRegAlloc() {
|
||||
if (getOptLevel() == CodeGenOpt::None)
|
||||
addPass(createMipsOptimizePICCallPass(getMipsTargetMachine()));
|
||||
addPass(createMipsOptimizePICCallPass(getMipsTargetMachine()));
|
||||
}
|
||||
|
||||
TargetIRAnalysis MipsTargetMachine::getTargetIRAnalysis() {
|
||||
|
|
Loading…
Reference in New Issue