diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-10-06 10:13:23 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2016-10-06 10:13:23 +0000 |
commit | 10c17ca6c6f5ceb01323c5cd8d7c446afa0ffa8c (patch) | |
tree | 4eca6502f83d427bfd4a0eed05f356b68159ff1e /llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp | |
parent | 08a37f46e316dbd2c451d7c514a04831bd6dfa9a (diff) | |
download | bcm5719-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.cpp | 3 |
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++) { |