[llvm] 8f7b6a9 - [X86] Remove unnecessary defaulted argument from function in X86FoldTablesEmitter.cpp. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 17 23:18:49 PDT 2020
Author: Craig Topper
Date: 2020-10-17T22:21:32-07:00
New Revision: 8f7b6a904fab1a0490c6b7cdf182d219f90c5cd4
URL: https://github.com/llvm/llvm-project/commit/8f7b6a904fab1a0490c6b7cdf182d219f90c5cd4
DIFF: https://github.com/llvm/llvm-project/commit/8f7b6a904fab1a0490c6b7cdf182d219f90c5cd4.diff
LOG: [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.
Added:
Modified:
llvm/utils/TableGen/X86FoldTablesEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/X86FoldTablesEmitter.cpp b/llvm/utils/TableGen/X86FoldTablesEmitter.cpp
index 8026c324cd40..807b787e2942 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")
More information about the llvm-commits
mailing list