[llvm] r328075 - [TableGen] Remove a defaulted function argument that is never called with another value. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 20 22:13:04 PDT 2018
Author: ctopper
Date: Tue Mar 20 22:13:04 2018
New Revision: 328075
URL: http://llvm.org/viewvc/llvm-project?rev=328075&view=rev
Log:
[TableGen] Remove a defaulted function argument that is never called with another value. NFC
Modified:
llvm/trunk/utils/TableGen/CodeGenSchedule.cpp
llvm/trunk/utils/TableGen/CodeGenSchedule.h
Modified: llvm/trunk/utils/TableGen/CodeGenSchedule.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenSchedule.cpp?rev=328075&r1=328074&r2=328075&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenSchedule.cpp (original)
+++ llvm/trunk/utils/TableGen/CodeGenSchedule.cpp Tue Mar 20 22:13:04 2018
@@ -405,11 +405,9 @@ std::string CodeGenSchedModels::genRWNam
return Name;
}
-unsigned CodeGenSchedModels::getSchedRWIdx(Record *Def, bool IsRead,
- unsigned After) const {
+unsigned CodeGenSchedModels::getSchedRWIdx(Record *Def, bool IsRead) const {
const std::vector<CodeGenSchedRW> &RWVec = IsRead ? SchedReads : SchedWrites;
- assert(After < RWVec.size() && "start position out of bounds");
- for (std::vector<CodeGenSchedRW>::const_iterator I = RWVec.begin() + After,
+ for (std::vector<CodeGenSchedRW>::const_iterator I = RWVec.begin(),
E = RWVec.end(); I != E; ++I) {
if (I->TheDef == Def)
return I - RWVec.begin();
Modified: llvm/trunk/utils/TableGen/CodeGenSchedule.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenSchedule.h?rev=328075&r1=328074&r2=328075&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenSchedule.h (original)
+++ llvm/trunk/utils/TableGen/CodeGenSchedule.h Tue Mar 20 22:13:04 2018
@@ -336,7 +336,7 @@ public:
return const_cast<CodeGenSchedModels&>(*this).getSchedRW(Def);
}
- unsigned getSchedRWIdx(Record *Def, bool IsRead, unsigned After = 0) const;
+ unsigned getSchedRWIdx(Record *Def, bool IsRead) const;
// Return true if the given write record is referenced by a ReadAdvance.
bool hasReadOfWrite(Record *WriteDef) const;
More information about the llvm-commits
mailing list