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

Carlos Alberto Enciso via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 25 22:18:02 PDT 2024


================
@@ -3648,6 +3648,33 @@ DIExpression *llvm::getExpressionForConstant(DIBuilder &DIB, const Constant &C,
   return nullptr;
 }
 
+void llvm::remapDebugVariable(ValueToValueMapTy &Mapping, Instruction *Inst) {
+  auto RemapDebugOperands = [&Mapping](auto *DV, auto Set) {
+    for (auto *Op : Set)
+      if (auto *InstOp = Op) {
----------------
CarlosAlbertoEnciso wrote:

@OCHyams Reworked the patch to remove those `if`s. Thanks.

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


More information about the llvm-commits mailing list