[PATCH] D41132: CodeGen: Fix assertion in machine inst sheduler due to llvm.dbg.value

Yaxun Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 13 13:48:55 PST 2017


yaxunl added inline comments.


================
Comment at: test/CodeGen/AMDGPU/debug-value.ll:1
+; RUN: llc -mtriple=amdgcn-amd-amdhsa-amdgizcl -mcpu=fi < %s
+target datalayout = "e-p:64:64-p1:64:64-p2:64:64-p3:32:32-p4:32:32-p5:32:32-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-v2048:2048-n32:64-A5"
----------------
arsenm wrote:
> yaxunl wrote:
> > yaxunl wrote:
> > > arsenm wrote:
> > > > arsenm wrote:
> > > > > Typo in cpu
> > > > It's overridden by the attribute so it should just be dropped. Also could use -verify-machineinstrs, and should check for the DBG_VALUE
> > > How do I check DBG_VALUE? It is not in the ISA assembly.
> > Never mind. I saw it with -O0.
> -O0 will disable the scheduler, breaking the point of the test. It should appear as a comment even with optimizations
The test missed some debug info, therefore LiveDebugVariables pass removed the DBG_VALUE. Will fix the test.


https://reviews.llvm.org/D41132





More information about the llvm-commits mailing list