llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Assertion `!(IsVariadic && IsIndirect)' failed: llvm::SDDbgValue::SDDbgValue(llvm::BumpPtrAllocator &, llvm::DIVariable *, llvm::DIExpression *, ArrayRef< llvm::SDDbgOperand>, ArrayRef<llvm::SDNode *>, bool, llvm::DebugLoc, unsigned int, bool)

Open dcci opened this issue 3 years ago • 3 comments

To repro:

./llc -O3 reduced.ll.txt

(file attached) reduced.ll.txt

Points to:

commit 3ab03ad37d48d60596fc7f50f6c76794030baaf3
Author: David <[email protected]>
Date:   Wed Oct 25 12:51:49 2023 +0200

    [SelectionDAG] Salvage debug info for non-constant ADDs (#68981)
    
    Teach SelectionDAG::salvageDebugInfo() to salvage debug information for
    ADD nodes where the RHS is non-constant.
    
    Co-authored-by: Mikael Holmen <[email protected]>
    
    - [DebugInfo] Precommit testcase for pointer addition with unknown
    offset
    - [SelectionDAG] Salvage debug info for non-constant ADDs
    
    ---------
    
    Co-authored-by: Mikael Holmen <[email protected]>

 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp     | 43 ++++++++++++----
 .../pointer-add-unknown-offset-debug-info.mir      | 60 ++++++++++++++++++++++
 2 files changed, 93 insertions(+), 10 deletions(-)

dcci avatar Nov 15 '23 22:11 dcci

@dstenb can you please help taking a look?

dcci avatar Nov 15 '23 22:11 dcci

Fixed by #72645.

dstenb avatar Nov 18 '23 16:11 dstenb

@llvm/issue-subscribers-debuginfo

Author: Davide Italiano (dcci)

To repro: ``` ./llc -O3 reduced.ll.txt ``` (file attached) [reduced.ll.txt](https://github.com/llvm/llvm-project/files/13370372/reduced.ll.txt)

Points to:

commit 3ab03ad37d48d60596fc7f50f6c76794030baaf3
Author: David &lt;david.stenberg@<!-- -->ericsson.com&gt;
Date:   Wed Oct 25 12:51:49 2023 +0200

    [SelectionDAG] Salvage debug info for non-constant ADDs (#<!-- -->68981)
    
    Teach SelectionDAG::salvageDebugInfo() to salvage debug information for
    ADD nodes where the RHS is non-constant.
    
    Co-authored-by: Mikael Holmen &lt;mikael.holmen@<!-- -->ericsson.com&gt;
    
    - [DebugInfo] Precommit testcase for pointer addition with unknown
    offset
    - [SelectionDAG] Salvage debug info for non-constant ADDs
    
    ---------
    
    Co-authored-by: Mikael Holmen &lt;mikael.holmen@<!-- -->ericsson.com&gt;

 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp     | 43 ++++++++++++----
 .../pointer-add-unknown-offset-debug-info.mir      | 60 ++++++++++++++++++++++
 2 files changed, 93 insertions(+), 10 deletions(-)

llvmbot avatar Nov 18 '23 16:11 llvmbot