[llvm] r359597 - [X86] Remove if that's always true
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 30 12:02:15 PDT 2019
Author: ctopper
Date: Tue Apr 30 12:02:15 2019
New Revision: 359597
URL: http://llvm.org/viewvc/llvm-project?rev=359597&view=rev
Log:
[X86] Remove if that's always true
It's been like this since it was added in a refactor of this code.
Fixes PR41659
Modified:
llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp
Modified: llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp?rev=359597&r1=359596&r2=359597&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp (original)
+++ llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp Tue Apr 30 12:02:15 2019
@@ -376,8 +376,7 @@ static int readPrefixes(struct InternalI
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;
More information about the llvm-commits
mailing list