[Bundle][Codegen] Ignore bundle for meta-instruction
authorShengchen Kan <shengchen.kan@intel.com>
Wed, 23 Mar 2022 02:14:02 +0000 (10:14 +0800)
committerShengchen Kan <shengchen.kan@intel.com>
Wed, 23 Mar 2022 02:14:54 +0000 (10:14 +0800)
The purpose is to keep the default behavior as before.
Noticed by comments in D121600.

Reviewed By: bjope

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

llvm/include/llvm/CodeGen/MachineInstr.h

index cd68e98..e0ca164 100644 (file)
@@ -814,7 +814,7 @@ public:
 
   /// Return true if this instruction doesn't produce any output in the form of
   /// executable instructions.
-  bool isMetaInstruction(QueryType Type = AnyInBundle) const {
+  bool isMetaInstruction(QueryType Type = IgnoreBundle) const {
     return hasProperty(MCID::Meta, Type);
   }