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:
parent
4f2a6bde49
commit
5fd3367c3a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user