forked from OSchip/llvm-project
Fix an off-by-one error. Also make the code a little more explicit in what it
is trying to do. llvm-svn: 185191
This commit is contained in:
parent
a67de2b1bc
commit
ee740c4d88
|
@ -115,9 +115,10 @@ namespace {
|
|||
unsigned Mask = 0;
|
||||
for (MachineBasicBlock::livein_iterator I = MBB->livein_begin(),
|
||||
E = MBB->livein_end(); I != E; ++I) {
|
||||
unsigned Reg = *I - X86::FP0;
|
||||
if (Reg < 8)
|
||||
Mask |= 1 << Reg;
|
||||
unsigned Reg = *I;
|
||||
if (Reg < X86::FP0 || Reg > X86::FP6)
|
||||
continue;
|
||||
Mask |= 1 << (Reg - X86::FP0);
|
||||
}
|
||||
return Mask;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue