Skip to content

Commit abea3b2

Browse files
authored
[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.
1 parent 5f5b3bb commit abea3b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/RDFGraph.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ void DataFlowGraph::build(const Config &config) {
870870
std::set<RegisterId> BaseSet;
871871
if (BuildCfg.Classes.empty()) {
872872
// Insert every register.
873-
for (unsigned R = 0, E = getPRI().getTRI().getNumRegs(); R != E; ++R)
873+
for (unsigned R = 1, E = getPRI().getTRI().getNumRegs(); R != E; ++R)
874874
BaseSet.insert(R);
875875
} else {
876876
for (const TargetRegisterClass *RC : BuildCfg.Classes) {

0 commit comments

Comments
 (0)