[llvm] r201216 - Remove special case filtering for instructions with lock prefix as they are all marked with isCodeGenOnly already.

Craig Topper craig.topper at gmail.com
Wed Feb 12 00:09:20 PST 2014


Author: ctopper
Date: Wed Feb 12 02:09:20 2014
New Revision: 201216

URL: http://llvm.org/viewvc/llvm-project?rev=201216&view=rev
Log:
Remove special case filtering for instructions with lock prefix as they are all marked with isCodeGenOnly already.

Modified:
    llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp
    llvm/trunk/utils/TableGen/X86RecognizableInstr.h

Modified: llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp?rev=201216&r1=201215&r2=201216&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp (original)
+++ llvm/trunk/utils/TableGen/X86RecognizableInstr.cpp Wed Feb 12 02:09:20 2014
@@ -180,7 +180,6 @@ RecognizableInstr::RecognizableInstr(Dis
   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 Recognizab
   //
 
 
-  // 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")

Modified: llvm/trunk/utils/TableGen/X86RecognizableInstr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/X86RecognizableInstr.h?rev=201216&r1=201215&r2=201216&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/X86RecognizableInstr.h (original)
+++ llvm/trunk/utils/TableGen/X86RecognizableInstr.h Wed Feb 12 02:09:20 2014
@@ -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





More information about the llvm-commits mailing list