[llvm] [SelectionDAG] Salvage debuginfo when combining load and sext instrs. (PR #169779)
Shubham Sandeep Rastogi via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 27 10:13:40 PST 2025
rastogishubham wrote:
@OCHyams thanks for the review, you are correct about the `DW_OP_LLVM_fragment`, we use `DW_OP_LLVM_convert` instead!
```
DIExpression::ExtOps DIExpression::getExtOps(unsigned FromSize, unsigned ToSize,
bool Signed) {
dwarf::TypeKind TK = Signed ? dwarf::DW_ATE_signed : dwarf::DW_ATE_unsigned;
DIExpression::ExtOps Ops{{dwarf::DW_OP_LLVM_convert, FromSize, TK,
dwarf::DW_OP_LLVM_convert, ToSize, TK}};
return Ops;
}
```
https://github.com/llvm/llvm-project/pull/169779
More information about the llvm-commits
mailing list