[llvm] Handle llvm.dbg.values in SROA. (PR #94070)
Shubham Sandeep Rastogi via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 4 11:05:58 PDT 2024
================
@@ -5045,10 +5045,20 @@ static void insertNewDbgInst(DIBuilder &DIB, DbgVariableRecord *Orig,
BeforeInst->getIterator());
return;
}
+
+ if (Orig->isDbgValue()) {
----------------
rastogishubham wrote:
You are correct on the semantic difference, but as far as I understand, the `DbgValueInst` will be converted to a `#dbg_value` before SROA is run, so I don't think we do not need to add support for `DbgValueInst`
https://github.com/llvm/llvm-project/pull/94070
More information about the llvm-commits
mailing list