Remove special case filtering for instructions with lock prefix as they are all marke...
authorCraig Topper <craig.topper@gmail.com>
Wed, 12 Feb 2014 08:09:20 +0000 (08:09 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 12 Feb 2014 08:09:20 +0000 (08:09 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201216 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/X86RecognizableInstr.cpp
utils/TableGen/X86RecognizableInstr.h

index 643823450f2f83d215fb1890124fb17e5fb2f002..303289744680c1b298f70a2a00bd04b5f7162e6b 100644 (file)
@@ -180,7 +180,6 @@ RecognizableInstr::RecognizableInstr(DisassemblerTables &tables,
   HasEVEX_K        = Rec->getValueAsBit("hasEVEX_K");
   HasEVEX_KZ       = Rec->getValueAsBit("hasEVEX_Z");
   HasEVEX_B        = Rec->getValueAsBit("hasEVEX_B");
-  HasLockPrefix    = Rec->getValueAsBit("hasLockPrefix");
   HasREPPrefix     = Rec->getValueAsBit("hasREPPrefix");
   IsCodeGenOnly    = Rec->getValueAsBit("isCodeGenOnly");
   ForceDisassemble = Rec->getValueAsBit("ForceDisassemble");
@@ -403,11 +402,6 @@ RecognizableInstr::filter_ret RecognizableInstr::filter() const {
   //
 
 
-  // Filter out instructions with a LOCK prefix;
-  //   prefer forms that do not have the prefix
-  if (HasLockPrefix)
-    return FILTER_WEAK;
-
   // Special cases.
 
   if (Name == "VMASKMOVDQU64")
index 70c785ed8896d6f8a8618b733df7c4b7298995ef..ac80ec653b333faba680214f25b729c1e41f5f74 100644 (file)
@@ -74,8 +74,6 @@ private:
   bool HasEVEX_KZ;
   /// The hasEVEX_B field from the record
   bool HasEVEX_B;
-  /// The hasLockPrefix field from the record
-  bool HasLockPrefix;
   /// The hasREPPrefix field from the record
   bool HasREPPrefix;
   /// The isCodeGenOnly field from the record