[llvm] r298495 - [X86] Remove unnecessary duplicate code (PR30649). NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 22 04:23:50 PDT 2017
Author: rksimon
Date: Wed Mar 22 06:23:49 2017
New Revision: 298495
URL: http://llvm.org/viewvc/llvm-project?rev=298495&view=rev
Log:
[X86] Remove unnecessary duplicate code (PR30649). NFCI.
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=298495&r1=298494&r2=298495&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp (original)
+++ llvm/trunk/lib/Target/X86/Disassembler/X86DisassemblerDecoder.cpp Wed Mar 22 06:23:49 2017
@@ -650,11 +650,6 @@ static int readPrefixes(struct InternalI
insn->addressSize = (hasAdSize ? 4 : 8);
insn->displacementSize = 4;
insn->immediateSize = 4;
- } else if (insn->rexPrefix) {
- insn->registerSize = (hasOpSize ? 2 : 4);
- insn->addressSize = (hasAdSize ? 4 : 8);
- insn->displacementSize = (hasOpSize ? 2 : 4);
- insn->immediateSize = (hasOpSize ? 2 : 4);
} else {
insn->registerSize = (hasOpSize ? 2 : 4);
insn->addressSize = (hasAdSize ? 4 : 8);
More information about the llvm-commits
mailing list