[backend-IRC]进一步构建寄存器分配逻辑

This commit is contained in:
Lixuanwang
2025-08-01 02:47:40 +08:00
parent 03e88eee70
commit f387aecc03
6 changed files with 360 additions and 179 deletions

View File

@@ -1108,7 +1108,7 @@ void RISCv64RegAlloc::combine(unsigned u, unsigned v) {
moveList[u] = moveList.at(v);
}
enableMoves({v});
for (unsigned t : adjacent(v)) {
for (unsigned t : adjList.at(v)) {
addEdge(t, u);
decrementDegree(t);
}