From: Cui, Lili Date: Wed, 22 May 2024 06:38:32 +0000 (+0800) Subject: X86: Remove "i.rex" to eliminate extra conditional branch X-Git-Tag: gdb-15-branchpoint~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b757e3c1acbec5173f5ca04eb0cc7cfad7c7cb7e;p=thirdparty%2Fbinutils-gdb.git X86: Remove "i.rex" to eliminate extra conditional branch Resulting code will do better without the extra conditional branch. Remove "i.rex" to eliminate extra conditional branch. gas/ChangeLog: * config/tc-i386.c (establish_rex): Remove i.rex. --- diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index dc6d8bb9398..cb3d464e97a 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -4308,7 +4308,7 @@ static void establish_rex (void) && (i.op[first].regs->reg_flags & RegRex64) != 0) || (i.types[last].bitfield.class == Reg && i.types[last].bitfield.byte && (i.op[last].regs->reg_flags & RegRex64) != 0)) - && !i.rex && !is_apx_rex2_encoding () && !is_any_vex_encoding (&i.tm)) + && !is_apx_rex2_encoding () && !is_any_vex_encoding (&i.tm)) i.rex |= REX_OPCODE; /* For REX/REX2/EVEX prefix instructions, we need to convert old registers