[PATCH] D78135: [MachineDebugify] Insert synthetic DBG_VALUE instructions

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 15 14:19:45 PDT 2020


paquette added inline comments.


================
Comment at: llvm/lib/CodeGen/MachineDebugify.cpp:79-82
+      if (!Line2Var.empty())
+        for (MachineOperand &MO : MI.operands())
+          if (MO.isReg() && MO.isDef() && MO.getReg())
+            DefinedValues.push_back(&MO);
----------------
Maybe a bit nicer:

```
if (Line2Var.empty())
  continue;

for (MachineOperand &MO : MI.operands())
  ...
```


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D78135





More information about the llvm-commits mailing list