[PATCH] D43111: [CodeGen] Add lifetime markers to the list of meta-instructions.

Matt Davis via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 8 19:18:34 PST 2018


mattd created this revision.
mattd added a reviewer: aprantl.

Since the lifetime markers are metadata instructions, they should probably be treated as such by the isMetaInstruction predicate.
There was no issue that provoked this change, I just ran across it while investigating another issue.


https://reviews.llvm.org/D43111

Files:
  include/llvm/CodeGen/MachineInstr.h


Index: include/llvm/CodeGen/MachineInstr.h
===================================================================
--- include/llvm/CodeGen/MachineInstr.h
+++ include/llvm/CodeGen/MachineInstr.h
@@ -893,6 +893,8 @@
     case TargetOpcode::EH_LABEL:
     case TargetOpcode::GC_LABEL:
     case TargetOpcode::DBG_VALUE:
+    case TargetOpcode::LIFETIME_START:
+    case TargetOpcode::LIFETIME_END:
       return true;
     }
   }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43111.133554.patch
Type: text/x-patch
Size: 424 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180209/378db757/attachment.bin>


More information about the llvm-commits mailing list