summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2016-10-06 10:13:23 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2016-10-06 10:13:23 +0000
commit10c17ca6c6f5ceb01323c5cd8d7c446afa0ffa8c (patch)
tree4eca6502f83d427bfd4a0eed05f356b68159ff1e /llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
parent08a37f46e316dbd2c451d7c514a04831bd6dfa9a (diff)
downloadbcm5719-llvm-10c17ca6c6f5ceb01323c5cd8d7c446afa0ffa8c.tar.gz
bcm5719-llvm-10c17ca6c6f5ceb01323c5cd8d7c446afa0ffa8c.zip
AMDGPU: Partially fix reported code size for some instructions
These ones need to have the size on the pseudo instruction set for getInstSizeInBytes to work correctly. These also have a statically known size. llvm-svn: 283437
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp b/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
index e9bc1191cba..ef7321402da 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
@@ -346,7 +346,8 @@ void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo,
if (MI.isDebugValue())
continue;
- CodeSize += TII->getInstSizeInBytes(MI);
+ if (isVerbose())
+ CodeSize += TII->getInstSizeInBytes(MI);
unsigned numOperands = MI.getNumOperands();
for (unsigned op_idx = 0; op_idx < numOperands; op_idx++) {
OpenPOWER on IntegriCloud