[PATCH] D69606: [MachineBasicBlock] Skip over debug instructions in computeRegisterLiveness before checking for begin/end.

Chris Ye via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 30 01:35:32 PDT 2019


yechunliang added inline comments.


================
Comment at: llvm/lib/CodeGen/MachineBasicBlock.cpp:1410-1411
+  // Skip over debug instructions.
+  if (I != end() && I->isDebugInstr())
+    ++I;
+
----------------
Does this code duplicated with the line: 1392-1394?

```
 for (; I != end() && N > 0; ++I) {
    if (I->isDebugInstr())
      continue;
```



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D69606





More information about the llvm-commits mailing list