[llvm] r324771 - [CodeGen] Add lifetime markers to the list of meta-instructions.

Matt Davis via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 9 13:34:35 PST 2018


Author: mattd
Date: Fri Feb  9 13:34:34 2018
New Revision: 324771

URL: http://llvm.org/viewvc/llvm-project?rev=324771&view=rev
Log:
[CodeGen] Add lifetime markers to the list of meta-instructions.

Summary:
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.

Reviewers: aprantl, MatzeB

Reviewed By: aprantl

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D43111

Modified:
    llvm/trunk/include/llvm/CodeGen/MachineInstr.h

Modified: llvm/trunk/include/llvm/CodeGen/MachineInstr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineInstr.h?rev=324771&r1=324770&r2=324771&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineInstr.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineInstr.h Fri Feb  9 13:34:34 2018
@@ -893,6 +893,8 @@ public:
     case TargetOpcode::EH_LABEL:
     case TargetOpcode::GC_LABEL:
     case TargetOpcode::DBG_VALUE:
+    case TargetOpcode::LIFETIME_START:
+    case TargetOpcode::LIFETIME_END:
       return true;
     }
   }




More information about the llvm-commits mailing list