llvm-project
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)
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(-)
@dstenb can you please help taking a look?
Fixed by #72645.
@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 <david.stenberg@<!-- -->ericsson.com>
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 <mikael.holmen@<!-- -->ericsson.com>
- [DebugInfo] Precommit testcase for pointer addition with unknown
offset
- [SelectionDAG] Salvage debug info for non-constant ADDs
---------
Co-authored-by: Mikael Holmen <mikael.holmen@<!-- -->ericsson.com>
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 43 ++++++++++++----
.../pointer-add-unknown-offset-debug-info.mir | 60 ++++++++++++++++++++++
2 files changed, 93 insertions(+), 10 deletions(-)