26 unsigned FirstOpcode =
28 :
static_cast<unsigned>(ARM::INSTRUCTION_LIST_END);
29 unsigned SecondOpcode = SecondMI.
getOpcode();
31 switch(SecondOpcode) {
34 return FirstOpcode == ARM::AESE ||
35 FirstOpcode == ARM::INSTRUCTION_LIST_END;
38 return FirstOpcode == ARM::AESD ||
39 FirstOpcode == ARM::INSTRUCTION_LIST_END;
49 unsigned FirstOpcode =
51 :
static_cast<unsigned>(ARM::INSTRUCTION_LIST_END);
52 unsigned SecondOpcode = SecondMI.
getOpcode();
55 if ((FirstOpcode == ARM::INSTRUCTION_LIST_END ||
56 FirstOpcode == ARM::MOVi16) &&
57 SecondOpcode == ARM::MOVTi16)
Compute iterated dominance frontiers using a linear time algorithm.
static bool isAESPair(const MachineInstr *FirstMI, const MachineInstr &SecondMI)
const HexagonInstrInfo * TII
unsigned getOpcode() const
Returns the opcode of this MachineInstr.
std::unique_ptr< ScheduleDAGMutation > createMacroFusionDAGMutation(ShouldSchedulePredTy shouldScheduleAdjacent)
Create a DAG scheduling mutation to pair instructions back to back for instructions that benefit acco...
bool hasFuseLiterals() const
std::unique_ptr< ScheduleDAGMutation > createARMMacroFusionDAGMutation()
Note that you have to add: DAG.addMutation(createARMMacroFusionDAGMutation()); to ARMPassConfig::crea...
TargetInstrInfo - Interface to description of machine instruction set.
static bool isLiteralsPair(const MachineInstr *FirstMI, const MachineInstr &SecondMI)
static bool shouldScheduleAdjacent(const TargetInstrInfo &TII, const TargetSubtargetInfo &TSI, const MachineInstr *FirstMI, const MachineInstr &SecondMI)
Check if the instr pair, FirstMI and SecondMI, should be fused together.
TargetSubtargetInfo - Generic base class for all target subtargets.
Representation of each machine instruction.