- There are no duplicate registers in LiveRegs list we are copying from and so we do not need to sort the registers.
- Simply use SmallVector::apend instead of a loop between begin() and end() with push_back().
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
The sorting was needed at one point, but since you're integrating the register pressure result into the tracker it should be self-contained and safe.