mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
x64Emitter: Simplify/compress some conditionals
This commit is contained in:
parent
c08a83a5aa
commit
f194ee6223
@ -166,16 +166,7 @@ struct OpArg
|
||||
bool IsSimpleReg() const {return scale == SCALE_NONE;}
|
||||
bool IsSimpleReg(X64Reg reg) const
|
||||
{
|
||||
if (!IsSimpleReg())
|
||||
return false;
|
||||
return GetSimpleReg() == reg;
|
||||
}
|
||||
|
||||
bool CanDoOpWith(const OpArg& other) const
|
||||
{
|
||||
if (IsSimpleReg()) return true;
|
||||
if (!IsSimpleReg() && !other.IsSimpleReg() && !other.IsImm()) return false;
|
||||
return true;
|
||||
return IsSimpleReg() && GetSimpleReg() == reg;
|
||||
}
|
||||
|
||||
int GetImmBits() const
|
||||
|
Loading…
x
Reference in New Issue
Block a user