mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-26 14:15:53 +00:00
[mips] Define method MipsSubtarget::enableLongBranchPass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@192122 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
23eb90714b
commit
96ba8cb9b2
@ -194,6 +194,10 @@ public:
|
||||
|
||||
bool mipsSEUsesSoftFloat() const;
|
||||
|
||||
bool enableLongBranchPass() const {
|
||||
return hasStandardEncoding() || allowMixed16_32();
|
||||
}
|
||||
|
||||
/// Features related to the presence of specific instructions.
|
||||
bool hasSEInReg() const { return HasSEInReg; }
|
||||
bool hasCondMov() const { return HasCondMov; }
|
||||
|
@ -197,8 +197,7 @@ bool MipsPassConfig::addPreEmitPass() {
|
||||
const MipsSubtarget &Subtarget = TM.getSubtarget<MipsSubtarget>();
|
||||
addPass(createMipsDelaySlotFillerPass(TM));
|
||||
|
||||
if (Subtarget.hasStandardEncoding() ||
|
||||
Subtarget.allowMixed16_32())
|
||||
if (Subtarget.enableLongBranchPass())
|
||||
addPass(createMipsLongBranchPass(TM));
|
||||
if (Subtarget.inMips16Mode() ||
|
||||
Subtarget.allowMixed16_32())
|
||||
|
Loading…
Reference in New Issue
Block a user