[PATCH] D98401: [CodeGen] Fix backward copy propagation with -g

Zhiwei Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 12 02:54:15 PST 2021


condy added inline comments.


================
Comment at: llvm/lib/CodeGen/MachineCopyPropagation.cpp:651-653
+    // Ignore DBG_VALUEs
+    if (MI->isDebugValue())
+        continue;
----------------
Orlando wrote:
> Is it worth using `MachineInstr::isMetaInstruction` instead of `MachineInstr::isDebugValue` to catch other MIR instructions which don't produce executable code too?
> 
It should be. Actually I don't know there is a function `isMetaInstruction`, thanks for pointing out.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D98401



More information about the llvm-commits mailing list