[PATCH] D57702: [SelectionDAGBuilder] Add restrictions to EmitFuncArgumentDbgValue

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 11 09:29:21 PST 2019


aprantl accepted this revision.
aprantl added a comment.
This revision is now accepted and ready to land.

Thanks for the explanation!



================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:5005
+    bool VariableIsFunctionInputArg = Variable->isParameter() &&
+        DL->getInlinedAt() == nullptr;
+    bool IsInPrologue = SDNodeOrder == LowestSDNodeOrder;
----------------
we usually write this as `!DL->getInlinedAt()`


================
Comment at: llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp:5041
+      if (ArgNo >= FuncInfo.DescribedArgs.size())
+        FuncInfo.DescribedArgs.resize(ArgNo + 1);
+      else if (!IsInPrologue && FuncInfo.DescribedArgs.test(ArgNo))
----------------
I assume the in-between elements are zeroed out by default?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D57702/new/

https://reviews.llvm.org/D57702





More information about the llvm-commits mailing list