We need to check the opcode of FirstMI before accessing the operands. This
caused a buildbot failure during bootstrapping on AArch64.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305694
91177308-0d34-0410-b5e6-
96231b3b80d8
return FirstOpcode == AArch64::INSTRUCTION_LIST_END ||
(FirstOpcode == AArch64::MOVZXi &&
SecondMI.getOperand(3).getImm() == 16) ||
- (FirstMI->getOperand(3).getImm() == 32 &&
- FirstOpcode == AArch64::MOVKXi &&
+ (FirstOpcode == AArch64::MOVKXi &&
+ FirstMI->getOperand(3).getImm() == 32 &&
SecondMI.getOperand(3).getImm() == 48);
}