From: Craig Topper Date: Tue, 30 Apr 2019 19:02:15 +0000 (+0000) Subject: [X86] Remove if that's always true X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=65f4024cf21a18829745220bb78e3837b0aadcff;p=llvm [X86] Remove if that's always true It's been like this since it was added in a refactor of this code. Fixes PR41659 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@359597 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp b/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp index 11dc14371f2..b5789b5d837 100644 --- a/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp +++ b/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp @@ -376,8 +376,7 @@ static int readPrefixes(struct InternalInstruction* insn) { if (byte == 0xf3 && (nextByte == 0x88 || nextByte == 0x89 || nextByte == 0xc6 || nextByte == 0xc7)) { insn->xAcquireRelease = true; - if (nextByte != 0x90) // PAUSE instruction support - break; + break; } if (isREX(insn, nextByte)) { uint8_t nnextByte;