1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Override runOnMachineFunction for X86ISelDAGToDAG so that we can

reset the subtarget on each function.

llvm-svn: 209384
This commit is contained in:
Eric Christopher 2014-05-22 01:53:26 +00:00
parent 4f2a6bde49
commit 5fd3367c3a

View File

@ -162,6 +162,13 @@ namespace {
return "X86 DAG->DAG Instruction Selection";
}
bool runOnMachineFunction(MachineFunction &MF) override {
// Reset the subtarget each time through.
Subtarget = &TM.getSubtarget<X86Subtarget>();
SelectionDAGISel::runOnMachineFunction(MF);
return true;
}
void EmitFunctionEntryCode() override;
bool IsProfitableToFold(SDValue N, SDNode *U, SDNode *Root) const override;