42 unsigned FirstOpcode = FirstMI
44 :
static_cast<unsigned>(X86::INSTRUCTION_LIST_END);
45 unsigned SecondOpcode = SecondMI.
getOpcode();
47 switch (SecondOpcode) {
74 switch (FirstOpcode) {
91 case X86::TEST8ri_NOREX:
134 case X86::ADD16ri8_DB:
135 case X86::ADD16ri_DB:
138 case X86::ADD16rr_DB:
142 case X86::ADD32ri8_DB:
143 case X86::ADD32ri_DB:
146 case X86::ADD32rr_DB:
149 case X86::ADD64ri32_DB:
151 case X86::ADD64ri8_DB:
154 case X86::ADD64rr_DB:
180 return FuseKind == FuseCmp || FuseKind == FuseInc;
189 return FuseKind == FuseInc;
190 case X86::INSTRUCTION_LIST_END:
197 std::unique_ptr<ScheduleDAGMutation>
std::unique_ptr< ScheduleDAGMutation > createX86MacroFusionDAGMutation()
Note that you have to add: DAG.addMutation(createX86MacroFusionDAGMutation()); to X86PassConfig::crea...
const HexagonInstrInfo * TII
unsigned getOpcode() const
Returns the opcode of this MachineInstr.
TargetInstrInfo - Interface to description of machine instruction set.
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.
std::unique_ptr< ScheduleDAGMutation > createBranchMacroFusionDAGMutation(ShouldSchedulePredTy shouldScheduleAdjacent)
Create a DAG scheduling mutation to pair branch instructions with one of their predecessors back to b...
TargetSubtargetInfo - Generic base class for all target subtargets.
Representation of each machine instruction.