mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-03 18:32:50 +00:00
Fix an off-by-one error. Also make the code a little more explicit in what it
is trying to do. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185191 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1ca79907ef
commit
a5545bc2b9
@ -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…
x
Reference in New Issue
Block a user