mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-10 14:36:12 +00:00
[mips] Disable tail merging when long branch pass is enabled.
llvm-svn: 192124
This commit is contained in:
parent
feace9b737
commit
5954578b3c
@ -135,7 +135,13 @@ namespace {
|
||||
class MipsPassConfig : public TargetPassConfig {
|
||||
public:
|
||||
MipsPassConfig(MipsTargetMachine *TM, PassManagerBase &PM)
|
||||
: TargetPassConfig(TM, PM) {}
|
||||
: TargetPassConfig(TM, PM) {
|
||||
// The current implementation of long branch pass requires a scratch
|
||||
// register ($at) to be available before branch instructions. Tail merging
|
||||
// can break this requirement, so disable it when long branch pass is
|
||||
// enabled.
|
||||
EnableTailMerge = !getMipsSubtarget().enableLongBranchPass();
|
||||
}
|
||||
|
||||
MipsTargetMachine &getMipsTargetMachine() const {
|
||||
return getTM<MipsTargetMachine>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user