Remove some unnecessary code. The conditions it was checking had already been ruled...
authorCraig Topper <craig.topper@gmail.com>
Sun, 9 Feb 2014 07:13:41 +0000 (07:13 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 9 Feb 2014 07:13:41 +0000 (07:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201039 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/FixedLenDecoderEmitter.cpp

index ca1892b682da3775b075bffc5409aecef20f7ce7..a8841759ac91ac1c48402348fd2704d9b7b5f334 100644 (file)
@@ -1705,13 +1705,6 @@ static bool populateInstruction(CodeGenTarget &Target,
   // If all the bit positions are not specified; do not decode this instruction.
   // We are bound to fail!  For proper disassembly, the well-known encoding bits
   // of the instruction must be fully specified.
-  //
-  // This also removes pseudo instructions from considerations of disassembly,
-  // which is a better design and less fragile than the name matchings.
-  // Ignore "asm parser only" instructions.
-  if (Def.getValueAsBit("isAsmParserOnly") ||
-      Def.getValueAsBit("isCodeGenOnly"))
-    return false;
 
   BitsInit &Bits = getBitsField(Def, "Inst");
   if (Bits.allInComplete()) return false;