mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
minor speedup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30065 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5e50349070
commit
fbecc5a593
@ -161,7 +161,7 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) {
|
|||||||
numIntervalsAfter += getNumIntervals();
|
numIntervalsAfter += getNumIntervals();
|
||||||
|
|
||||||
// perform a final pass over the instructions and compute spill
|
// perform a final pass over the instructions and compute spill
|
||||||
// weights, coalesce virtual registers and remove identity moves
|
// weights, coalesce virtual registers and remove identity moves.
|
||||||
const LoopInfo& loopInfo = getAnalysis<LoopInfo>();
|
const LoopInfo& loopInfo = getAnalysis<LoopInfo>();
|
||||||
|
|
||||||
for (MachineFunction::iterator mbbi = mf_->begin(), mbbe = mf_->end();
|
for (MachineFunction::iterator mbbi = mf_->begin(), mbbe = mf_->end();
|
||||||
@ -182,8 +182,8 @@ bool LiveIntervals::runOnMachineFunction(MachineFunction &fn) {
|
|||||||
++numPeep;
|
++numPeep;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
for (unsigned i = 0; i < mii->getNumOperands(); ++i) {
|
for (unsigned i = 0, e = mii->getNumOperands(); i != e; ++i) {
|
||||||
const MachineOperand& mop = mii->getOperand(i);
|
const MachineOperand &mop = mii->getOperand(i);
|
||||||
if (mop.isRegister() && mop.getReg() &&
|
if (mop.isRegister() && mop.getReg() &&
|
||||||
MRegisterInfo::isVirtualRegister(mop.getReg())) {
|
MRegisterInfo::isVirtualRegister(mop.getReg())) {
|
||||||
// replace register with representative register
|
// replace register with representative register
|
||||||
|
Loading…
Reference in New Issue
Block a user