File tree 1 file changed +3
-10
lines changed
llvm/include/llvm/CodeGen 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -248,16 +248,9 @@ class RegAllocEvictionAdvisorAnalysis
248
248
249
249
bool invalidate (MachineFunction &MF, const PreservedAnalyses &PA,
250
250
MachineFunctionAnalysisManager::Invalidator &Inv) {
251
- auto PAC = PA.getChecker <RegAllocEvictionAdvisorAnalysis>();
252
- // If we are in default mode, the provider is always valid.
253
- if (Provider->getAdvisorMode () ==
254
- RegAllocEvictionAdvisorProvider::AdvisorMode::Default)
255
- return !PAC.preservedWhenStateless ();
256
- // MBFI and Loops are used in release and development modes, so check
257
- // those.
258
- return !PAC.preservedWhenStateless () ||
259
- Inv.invalidate <MachineBlockFrequencyAnalysis>(MF, PA) ||
260
- Inv.invalidate <MachineLoopAnalysis>(MF, PA);
251
+ // Provider is stateless and constructed only once. Do not get
252
+ // invalidated.
253
+ return false ;
261
254
}
262
255
};
263
256
You can’t perform that action at this time.
0 commit comments