[PATCH] D43028: Add DBG_VALUE support to the linear DAG scheduler

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 2 14:39:00 PST 2018


aprantl requested changes to this revision.
aprantl added a comment.
This revision now requires changes to proceed.

There's something weird with the test output:

  bb.3.for.body:
    successors: %bb.2(0x04000000), %bb.3(0x7c000000)
  
    %2:gr64 = PHI %8, %bb.1, %7, %bb.3
    %3:gr64 = PHI %0, %bb.1, %6, %bb.3
    %4:gr32 = PHI %11, %bb.1, %5, %bb.3
    %5:gr32 = ADD32rm %4, %2, 1, $noreg, 0, $noreg, implicit-def dead $eflags, debug-location !33 :: (load 4 from %ir.lsr.iv1, !tbaa !29)
    DBG_VALUE debug-use %5, debug-use $noreg, !14, !DIExpression(), debug-location !19
    DBG_VALUE debug-use %5, debug-use $noreg, !14, !DIExpression(), debug-location !19
    %6:gr64 = DEC64r %3, implicit-def $eflags, debug-location !21
    %7:gr64 = ADD64ri8 %2, 4, implicit-def dead $eflags, debug-location !21
    JE_1 %bb.2, implicit $eflags, debug-location !24
    JMP_1 %bb.3, debug-location !24

Why is this DBG_VALUE inserted twice?


Repository:
  rL LLVM

https://reviews.llvm.org/D43028





More information about the llvm-commits mailing list