Do not use MachineRegisterInfo::setPhysRegUsed()/isPhysRegUsed()
anymore. This bitset changes function-global state and is set by the
VirtRegRewriter anyway.
Simply use a bitvector private to RAGreedy.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Instead of maintaining a bitvector in RAGreedy, how about asking LiveRegMatrix? It can tell you if the corresponding LiveIntervalUnion is empty.
lib/CodeGen/RegAllocGreedy.cpp | ||
---|---|---|
829 ↗ | (On Diff #29103) | This looks like the guts of LiveRegMatrix are spilling out. How about moving this code into a LiveRegMatrix::isPhysRegUsed() function instead? Otherwise, looks good! |