summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>2018-02-21 16:37:45 +0000
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>2018-02-21 16:37:45 +0000
commit77cdf3881ccc98d453c91ca09dc482a731b6dfe0 (patch)
tree42b856e17f39924910d18cfa7bd31a8734e119ac /llvm/lib
parent3679c95ae45e5326368b263a9963fd217c768f95 (diff)
downloadbcm5719-llvm-77cdf3881ccc98d453c91ca09dc482a731b6dfe0.tar.gz
bcm5719-llvm-77cdf3881ccc98d453c91ca09dc482a731b6dfe0.zip
[Hexagon] 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: Krzysztof Parzyszek llvm-svn: 325697
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/Hexagon/HexagonRegisterInfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/Hexagon/HexagonRegisterInfo.h b/llvm/lib/Target/Hexagon/HexagonRegisterInfo.h
index 4ead57da8fa..7102bf1ee05 100644
--- a/llvm/lib/Target/Hexagon/HexagonRegisterInfo.h
+++ b/llvm/lib/Target/Hexagon/HexagonRegisterInfo.h
@@ -39,6 +39,8 @@ public:
BitVector getReservedRegs(const MachineFunction &MF) const override;
+ bool enableMultipleCopyHints() const override { return true; }
+
void eliminateFrameIndex(MachineBasicBlock::iterator II, int SPAdj,
unsigned FIOperandNum, RegScavenger *RS = nullptr) const override;
OpenPOWER on IntegriCloud