File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -160,10 +160,10 @@ FunctionPass *createX86InsertX87waitPass();
160160// / ways.
161161class X86PartialReductionPass : public PassInfoMixin <X86PartialReductionPass> {
162162private:
163- const TargetMachine *TM;
163+ const X86TargetMachine *TM;
164164
165165public:
166- X86PartialReductionPass (const TargetMachine *TM) : TM(TM) {}
166+ X86PartialReductionPass (const X86TargetMachine *TM) : TM(TM) {}
167167 PreservedAnalyses run (Function &F, FunctionAnalysisManager &FAM);
168168};
169169
Original file line number Diff line number Diff line change @@ -552,8 +552,7 @@ bool X86PartialReductionLegacy::runOnFunction(Function &F) {
552552
553553PreservedAnalyses X86PartialReductionPass::run (Function &F,
554554 FunctionAnalysisManager &FAM) {
555- bool Changed =
556- X86PartialReduction (static_cast <const X86TargetMachine *>(TM)).run (F);
555+ bool Changed = X86PartialReduction (TM).run (F);
557556 if (!Changed)
558557 return PreservedAnalyses::all ();
559558
You can’t perform that action at this time.
0 commit comments