forked from OSchip/llvm-project
Fix "comparison of unsigned expression >= 0 is always true" warning. NFCI.
llvm-svn: 351816
This commit is contained in:
parent
2c69f90171
commit
9e2c2cfcd9
|
@ -1582,7 +1582,7 @@ MachineInstr *X86InstrInfo::commuteInstructionImpl(MachineInstr &MI, bool NewMI,
|
|||
if (DstIdx == SrcIdx && (ZMask & (1 << DstIdx)) == 0 &&
|
||||
countPopulation(ZMask) == 2) {
|
||||
unsigned AltIdx = findFirstSet((ZMask | (1 << DstIdx)) ^ 15);
|
||||
assert(0 <= AltIdx && AltIdx < 4 && "Illegal insertion index");
|
||||
assert(AltIdx < 4 && "Illegal insertion index");
|
||||
unsigned AltImm = (AltIdx << 6) | (AltIdx << 4) | ZMask;
|
||||
auto &WorkingMI = cloneIfNew(MI);
|
||||
WorkingMI.getOperand(MI.getNumOperands() - 1).setImm(AltImm);
|
||||
|
|
Loading…
Reference in New Issue