mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[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
c71771b919
commit
a63b0d284c
@ -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
Block a user