forked from OSchip/llvm-project
[X86] Merge a switch statement inside a default case of another switch statement on the same variable. There was no additional code in the default so this should be no functional change.
llvm-svn: 225345
This commit is contained in:
parent
8b3c47ca57
commit
39354e1b1a
|
@ -2267,6 +2267,7 @@ X86InstrInfo::convertToThreeAddress(MachineFunction::iterator &MFI,
|
|||
|
||||
unsigned MIOpc = MI->getOpcode();
|
||||
switch (MIOpc) {
|
||||
default: return nullptr;
|
||||
case X86::SHL64ri: {
|
||||
assert(MI->getNumOperands() >= 3 && "Unknown shift instruction!");
|
||||
unsigned ShAmt = getTruncatedShiftCount(MI, 2);
|
||||
|
@ -2321,10 +2322,6 @@ X86InstrInfo::convertToThreeAddress(MachineFunction::iterator &MFI,
|
|||
.addReg(0).addImm(1 << ShAmt).addOperand(Src).addImm(0).addReg(0);
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
|
||||
switch (MIOpc) {
|
||||
default: return nullptr;
|
||||
case X86::INC64r:
|
||||
case X86::INC32r: {
|
||||
assert(MI->getNumOperands() >= 2 && "Unknown inc instruction!");
|
||||
|
@ -2495,8 +2492,6 @@ X86InstrInfo::convertToThreeAddress(MachineFunction::iterator &MFI,
|
|||
MI->getOperand(2).getImm());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!NewMI) return nullptr;
|
||||
|
||||
|
|
Loading…
Reference in New Issue