summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2016-06-16 21:14:05 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2016-06-16 21:14:05 +0000
commit01e062f5c667296ba7e6558572b9de516bf141f1 (patch)
tree84f555ab6e6852219c9db044e709612a764a58cb
parent1ab2fad3638f24b0b8762e5e24c351e67299508e (diff)
downloadbcm5719-llvm-01e062f5c667296ba7e6558572b9de516bf141f1.tar.gz
bcm5719-llvm-01e062f5c667296ba7e6558572b9de516bf141f1.zip
AMDGPU: Fix maximum instruction size for amdgcn
This was causing the conservative estimate of inline asm size to be twice as big as expected. llvm-svn: 272956
-rw-r--r--llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp b/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp
index 4bc80a02893..d7eb9f9ac0d 100644
--- a/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUMCAsmInfo.cpp
@@ -9,12 +9,14 @@
//===----------------------------------------------------------------------===//
#include "AMDGPUMCAsmInfo.h"
+#include "llvm/ADT/Triple.h"
using namespace llvm;
+
AMDGPUMCAsmInfo::AMDGPUMCAsmInfo(const Triple &TT) : MCAsmInfoELF() {
HasSingleParameterDotFile = false;
//===------------------------------------------------------------------===//
- MaxInstLength = 16;
+ MaxInstLength = (TT.getArch() == Triple::amdgcn) ? 8 : 16;
SeparatorString = "\n";
CommentString = ";";
PrivateLabelPrefix = "";
OpenPOWER on IntegriCloud