/** {@inheritDoc} */ @Override public Insn withLastSourceLiteral() { RegisterSpecList sources = getSources(); int szSources = sources.size(); if (szSources == 0) { return this; } TypeBearer lastType = sources.get(szSources - 1).getTypeBearer(); if (!lastType.isConstant()) { return this; } Constant cst = (Constant) lastType; RegisterSpecList newSources = sources.withoutLast(); Rop newRop; try { newRop = Rops.ropFor(getOpcode().getOpcode(), getResult(), newSources, (Constant)lastType); } catch (IllegalArgumentException ex) { // There's no rop for this case return this; } return new PlainCstInsn(newRop, getPosition(), getResult(), newSources, cst); }
RegOps.flippedIfOpcode(opcode.getOpcode())); } else if (isConstIntZeroOrKnownNull(sources.get(1))) { replacePlainInsn(insn, sources.withoutLast(), opcode.getOpcode());
RegOps.flippedIfOpcode(opcode.getOpcode()), null); } else if (isConstIntZeroOrKnownNull(sources.get(1))) { replacePlainInsn(insn, sources.withoutLast(), opcode.getOpcode(), null);
RegOps.flippedIfOpcode(opcode.getOpcode()), null); } else if (isConstIntZeroOrKnownNull(sources.get(1))) { replacePlainInsn(insn, sources.withoutLast(), opcode.getOpcode(), null);
RegOps.flippedIfOpcode(opcode.getOpcode()), null); } else if (isConstIntZeroOrKnownNull(sources.get(1))) { replacePlainInsn(insn, sources.withoutLast(), opcode.getOpcode(), null);
RegOps.flippedIfOpcode(opcode.getOpcode()), null); } else if (isConstIntZeroOrKnownNull(sources.get(1))) { replacePlainInsn(insn, sources.withoutLast(), opcode.getOpcode(), null);
RegOps.flippedIfOpcode(opcode.getOpcode()), null); } else if (isConstIntZeroOrKnownNull(sources.get(1))) { replacePlainInsn(insn, sources.withoutLast(), opcode.getOpcode(), null);
RegOps.flippedIfOpcode(opcode.getOpcode()), null); } else if (isConstIntZeroOrKnownNull(sources.get(1))) { replacePlainInsn(insn, sources.withoutLast(), opcode.getOpcode(), null);
RegOps.flippedIfOpcode(opcode.getOpcode()), null); } else if (isConstIntZeroOrKnownNull(sources.get(1))) { replacePlainInsn(insn, sources.withoutLast(), opcode.getOpcode(), null);
RegisterSpecList newSources = sources.withoutLast();
RegisterSpecList newSources = sources.withoutLast();
RegisterSpecList newSources = sources.withoutLast();
RegisterSpecList newSources = sources.withoutLast();
sources = sources.withoutLast();
RegisterSpecList newSources = sources.withoutLast();
RegisterSpecList newSources = sources.withoutLast();
sources = sources.withoutLast();
sources = sources.withoutLast();
sources = sources.withoutLast();
RegisterSpecList newSources = sources.withoutLast();