[llvm] [Transforms] Debug values are not remapped when cloning. (PR #87747)

Orlando Cazalet-Hyams via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 25 05:49:26 PDT 2024


================
@@ -478,6 +479,10 @@ void hoistAllInstructionsInto(BasicBlock *DomBlock, Instruction *InsertPt,
 DIExpression *getExpressionForConstant(DIBuilder &DIB, const Constant &C,
                                        Type &Ty);
 
+/// Remap the debug intrinsic instructions in the \p Mapping using the
+/// \p Inst as a criteria.
----------------
OCHyams wrote:

I think the wording of this comment is slightly unclear. What do you think of this instead?

"Remap the operands of the debug records attached to \p Inst, and the operands of \p Inst itself if it's a debug intrinsic."

https://github.com/llvm/llvm-project/pull/87747


More information about the llvm-commits mailing list