diff options
| author | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2018-02-23 08:30:15 +0000 |
|---|---|---|
| committer | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | 2018-02-23 08:30:15 +0000 |
| commit | 07d6aea61af9d69a1f230489207713f0d49efe08 (patch) | |
| tree | ca466985779c3f39c7e25a4abb221fd3d485024a /llvm/lib/Target | |
| parent | ff52eb5927e1045c042a8e442960de9c49b1935e (diff) | |
| download | bcm5719-llvm-07d6aea61af9d69a1f230489207713f0d49efe08.tar.gz bcm5719-llvm-07d6aea61af9d69a1f230489207713f0d49efe08.zip | |
[Mips] Return true in enableMultipleCopyHints().
Enable multiple COPY hints to eliminate more COPYs during register allocation.
Note that this is something all targets should do, see
https://reviews.llvm.org/D38128.
Review: Simon Dardis
llvm-svn: 325870
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/Mips/MipsRegisterInfo.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsRegisterInfo.h b/llvm/lib/Target/Mips/MipsRegisterInfo.h index fe8d7953ec8..53c42bccaf2 100644 --- a/llvm/lib/Target/Mips/MipsRegisterInfo.h +++ b/llvm/lib/Target/Mips/MipsRegisterInfo.h @@ -57,6 +57,8 @@ public: BitVector getReservedRegs(const MachineFunction &MF) const override; + bool enableMultipleCopyHints() const override { return true; } + bool requiresRegisterScavenging(const MachineFunction &MF) const override; bool trackLivenessAfterRegAlloc(const MachineFunction &MF) const override; |

