[llvm] [TableGen] Add support for per-write cycle tunables (PR #125870)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 5 09:50:26 PST 2025
================
@@ -1308,23 +1308,30 @@ void SubtargetEmitter::genSchedClassTables(const CodeGenProcModel &ProcModel,
}
ConstRecVec ValidWrites =
ReadAdvance->getValueAsListOfDefs("ValidWrites");
- IdxVec WriteIDs;
+ std::vector<int64_t> CycleTunables =
+ ReadAdvance->getValueAsListOfInts("CycleTunables");
+ std::vector<std::pair<unsigned, int>> WriteIDs;
+ if (!CycleTunables.empty() && CycleTunables.size() > ValidWrites.size())
----------------
topperc wrote:
is the `!CycleTunables.empty()` needed?
https://github.com/llvm/llvm-project/pull/125870
More information about the llvm-commits
mailing list