Skip to content

Commit

Permalink
X86MacroFusion.h - reduce MachineScheduler.h include. NFC.
Browse files Browse the repository at this point in the history
We only need a ScheduleDAGMutation forward declaration.
  • Loading branch information
RKSimon committed Apr 26, 2020
1 parent 3e14b95 commit fd283dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion llvm/lib/Target/X86/X86MacroFusion.h
Expand Up @@ -14,10 +14,12 @@
#ifndef LLVM_LIB_TARGET_X86_X86MACROFUSION_H
#define LLVM_LIB_TARGET_X86_X86MACROFUSION_H

#include "llvm/CodeGen/MachineScheduler.h"
#include <memory>

namespace llvm {

class ScheduleDAGMutation;

/// Note that you have to add:
/// DAG.addMutation(createX86MacroFusionDAGMutation());
/// to X86PassConfig::createMachineScheduler() to have an effect.
Expand Down

0 comments on commit fd283dd

Please sign in to comment.