]> granicus.if.org Git - llvm/commitdiff
[X86] Remove if that's always true
authorCraig Topper <craig.topper@intel.com>
Tue, 30 Apr 2019 19:02:15 +0000 (19:02 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 30 Apr 2019 19:02:15 +0000 (19:02 +0000)
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

lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp

index 11dc14371f2f3abb52543e584f3d2c5e8c4e99b0..b5789b5d83727160134589c25f189e2266e670a4 100644 (file)
@@ -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;