Merge pull request #2975 from lioncash/emit

x64Emitter: Simplify/compress some conditionals
This commit is contained in:
flacs 2015-09-08 18:44:54 +00:00
commit 0c381d6547
1 changed files with 1 additions and 10 deletions

View File

@ -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