From abea3b27991dd73cad251f623a2a8f25a3e786ff Mon Sep 17 00:00:00 2001 From: Jay Foad Date: Mon, 5 Feb 2024 14:15:55 +0000 Subject: [RDF] Skip over NoRegister. NFCI. (#80672) This just avoids useless work of adding NoRegister to BaseSet, for consistency with other places that iterate over all physical registers. --- llvm/lib/CodeGen/RDFGraph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/CodeGen/RDFGraph.cpp b/llvm/lib/CodeGen/RDFGraph.cpp index 6b2e69d..6276a47 100644 --- a/llvm/lib/CodeGen/RDFGraph.cpp +++ b/llvm/lib/CodeGen/RDFGraph.cpp @@ -870,7 +870,7 @@ void DataFlowGraph::build(const Config &config) { std::set BaseSet; if (BuildCfg.Classes.empty()) { // Insert every register. - for (unsigned R = 0, E = getPRI().getTRI().getNumRegs(); R != E; ++R) + for (unsigned R = 1, E = getPRI().getTRI().getNumRegs(); R != E; ++R) BaseSet.insert(R); } else { for (const TargetRegisterClass *RC : BuildCfg.Classes) { -- cgit v1.1