From f194ee62231026b6125f607fcf671f3d630f3caf Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sat, 5 Sep 2015 15:30:26 -0400 Subject: [PATCH] x64Emitter: Simplify/compress some conditionals --- Source/Core/Common/x64Emitter.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Source/Core/Common/x64Emitter.h b/Source/Core/Common/x64Emitter.h index 8070d70212..c267d890f2 100644 --- a/Source/Core/Common/x64Emitter.h +++ b/Source/Core/Common/x64Emitter.h @@ -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