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)
llvm-svn: 201216

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

index 6438234..3032897 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 70c785e..ac80ec6 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