summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>2018-02-23 08:30:15 +0000
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>2018-02-23 08:30:15 +0000
commit07d6aea61af9d69a1f230489207713f0d49efe08 (patch)
treeca466985779c3f39c7e25a4abb221fd3d485024a /llvm/lib/Target
parentff52eb5927e1045c042a8e442960de9c49b1935e (diff)
downloadbcm5719-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.h2
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;
OpenPOWER on IntegriCloud