diff options
Diffstat (limited to 'microbe/optimizer.cpp')
-rw-r--r-- | microbe/optimizer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/microbe/optimizer.cpp b/microbe/optimizer.cpp index 03e3110..1c8ce13 100644 --- a/microbe/optimizer.cpp +++ b/microbe/optimizer.cpp @@ -386,8 +386,8 @@ bool Optimizer::optimizeInstructions() { // If we are testing STATUS, then we assume that the bits changed // are only those that are marked as independent. - uchar bittqmask = ( i == 1 ) ? behaviour.reg( Register::STATUS ).indep : 0xff; - if ( !canRemove( *it, (i == 0) ? regSet : Register::STATUS, bittqmask ) ) + uchar bitmask = ( i == 1 ) ? behaviour.reg( Register::STATUS ).indep : 0xff; + if ( !canRemove( *it, (i == 0) ? regSet : Register::STATUS, bitmask ) ) { ok = false; break; @@ -479,7 +479,7 @@ bool Optimizer::canRemove( Instruction * ins, const Register & reg, uchar bitMas // The bits that are depended upon in the future for this register uchar depends = generateRegisterDepends( ins, reg ); - // Only interested in those bits allowed by the bit tqmask + // Only interested in those bits allowed by the bit mask depends &= bitMask; RegisterState inputState = ins->inputState().reg( reg ); |