From 8f7b6a904fab1a0490c6b7cdf182d219f90c5cd4 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sat, 17 Oct 2020 22:20:07 -0700 Subject: [PATCH] [X86] Remove unnecessary defaulted argument from function in X86FoldTablesEmitter.cpp. NFC Nothing ever calls it with anything other than the default value. So just delete it and the code that handled the non-default value. --- llvm/utils/TableGen/X86FoldTablesEmitter.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/llvm/utils/TableGen/X86FoldTablesEmitter.cpp b/llvm/utils/TableGen/X86FoldTablesEmitter.cpp index 8026c32..807b787 100644 --- a/llvm/utils/TableGen/X86FoldTablesEmitter.cpp +++ b/llvm/utils/TableGen/X86FoldTablesEmitter.cpp @@ -225,14 +225,8 @@ static inline unsigned int getRegOperandSize(const Record *RegRec) { } // Return the size of the memory operand -static inline unsigned int -getMemOperandSize(const Record *MemRec, const bool IntrinsicSensitive = false) { +static inline unsigned getMemOperandSize(const Record *MemRec) { if (MemRec->isSubClassOf("Operand")) { - // Intrinsic memory instructions use ssmem/sdmem. - if (IntrinsicSensitive && - (MemRec->getName() == "sdmem" || MemRec->getName() == "ssmem")) - return 128; - StringRef Name = MemRec->getValueAsDef("ParserMatchClass")->getValueAsString("Name"); if (Name == "Mem8") -- 2.7.4