mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-22 02:05:01 +00:00
Reset the subtarget for DAGToDAG on every iteration of runOnMachineFunction.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209374 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
14fb9b6069
commit
162180cba5
@ -45,7 +45,7 @@ class ARM64DAGToDAGISel : public SelectionDAGISel {
|
||||
public:
|
||||
explicit ARM64DAGToDAGISel(ARM64TargetMachine &tm, CodeGenOpt::Level OptLevel)
|
||||
: SelectionDAGISel(tm, OptLevel), TM(tm),
|
||||
Subtarget(&TM.getSubtarget<ARM64Subtarget>()), ForCodeSize(false) {}
|
||||
Subtarget(nullptr), ForCodeSize(false) {}
|
||||
|
||||
const char *getPassName() const override {
|
||||
return "ARM64 Instruction Selection";
|
||||
@ -57,6 +57,7 @@ public:
|
||||
FnAttrs.hasAttribute(AttributeSet::FunctionIndex,
|
||||
Attribute::OptimizeForSize) ||
|
||||
FnAttrs.hasAttribute(AttributeSet::FunctionIndex, Attribute::MinSize);
|
||||
Subtarget = &TM.getSubtarget<ARM64Subtarget>();
|
||||
return SelectionDAGISel::runOnMachineFunction(MF);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user