[llvm] [TableGen][SubtargetEmitter] Refactor hasReadOfWrite to take ProcModel argument (PR #92032)
Michael Maitland via llvm-commits
llvm-commits at lists.llvm.org
Tue May 14 06:27:21 PDT 2024
================
@@ -1122,8 +1122,8 @@ void SubtargetEmitter::GenSchedClassTables(const CodeGenProcModel &ProcModel,
WriterNames.push_back(SchedModels.getSchedWrite(WriteID).Name);
// If this Write is not referenced by a ReadAdvance, don't distinguish it
// from other WriteLatency entries.
- if (!SchedModels.hasReadOfWrite(
- SchedModels.getSchedWrite(WriteID).TheDef)) {
+ if (!SchedModels.hasReadOfWrite(SchedModels.getSchedWrite(WriteID).TheDef,
+ ProcModel)) {
----------------
michaelmaitland wrote:
I am going to remove my statement that it does not change the output. It may change the output on some targets.
https://github.com/llvm/llvm-project/pull/92032
More information about the llvm-commits
mailing list