summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2015-08-12 09:04:44 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2015-08-12 09:04:44 +0000
commitc5746865296fc07bb7f985d44d14ce780ac12086 (patch)
treed239f93f230ebf92ac786b3ed047484e5e468e5b /llvm/lib
parent9e0daff91e6fc9e03041524d2656a087ce925a1b (diff)
downloadbcm5719-llvm-c5746865296fc07bb7f985d44d14ce780ac12086.tar.gz
bcm5719-llvm-c5746865296fc07bb7f985d44d14ce780ac12086.zip
AMDGPU: Fix assert on dbg_value instructions
llvm-svn: 244728
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp b/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
index 709d7531d38..0a5309b16ee 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
@@ -264,6 +264,12 @@ void AMDGPUAsmPrinter::getSIProgramInfo(SIProgramInfo &ProgInfo,
for (const MachineBasicBlock &MBB : MF) {
for (const MachineInstr &MI : MBB) {
// TODO: CodeSize should account for multiple functions.
+
+ // TODO: Should we count size of debug info?
+ if (MI.isDebugValue())
+ continue;
+
+ // FIXME: This is reporting 0 for many instructions.
CodeSize += MI.getDesc().Size;
unsigned numOperands = MI.getNumOperands();
OpenPOWER on IntegriCloud