summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>2018-02-17 10:00:28 +0000
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>2018-02-17 10:00:28 +0000
commitb51a9bc35854509b9d4b125d232c4ff07ab765f5 (patch)
treecf3bacc75f84c4a5a98d34a787a49d1bdfccbeb1 /llvm/lib
parentb0e4f87fb073d517460fa562d31d94af28ce8bd0 (diff)
downloadbcm5719-llvm-b51a9bc35854509b9d4b125d232c4ff07ab765f5.tar.gz
bcm5719-llvm-b51a9bc35854509b9d4b125d232c4ff07ab765f5.zip
[AMDGPU] 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: Stanislav Mekhanoshin, Tom Stellard. llvm-svn: 325425
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPURegisterInfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPURegisterInfo.h b/llvm/lib/Target/AMDGPU/AMDGPURegisterInfo.h
index 00d1e1e8ddc..eb07ad69292 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPURegisterInfo.h
+++ b/llvm/lib/Target/AMDGPU/AMDGPURegisterInfo.h
@@ -27,6 +27,8 @@ class TargetInstrInfo;
struct AMDGPURegisterInfo : public AMDGPUGenRegisterInfo {
AMDGPURegisterInfo();
+ bool enableMultipleCopyHints() const override { return true; }
+
/// \returns the sub reg enum value for the given \p Channel
/// (e.g. getSubRegFromChannel(0) -> AMDGPU::sub0)
unsigned getSubRegFromChannel(unsigned Channel) const;
OpenPOWER on IntegriCloud