-
Notifications
You must be signed in to change notification settings - Fork 13.5k
[CodeGen][NewPM] Port machine dominator tree analysis to new pass manager #95879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
return !(PAC.preserved() || | ||
PAC.preservedSet<AllAnalysesOn<MachineFunction>>() || | ||
PAC.preservedSet<CFGAnalyses>()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
de Morgan this
PreservedAnalyses | ||
MachineDominatorTreePrinterPass::run(MachineFunction &MF, | ||
MachineFunctionAnalysisManager &MFAM) { | ||
OS << "MachineDominatorTree for machine function: " << MF.getName() << '\n'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leftover debug?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This follows DominatorTreePrinterPass
:
llvm-project/llvm/lib/IR/Dominators.cpp
Lines 384 to 385 in 4b4aaf1
OS << "DominatorTree for function: " << F.getName() << "\n"; | |
AM.getResult<DominatorTreeAnalysis>(F).print(OS); |
- Add `MachineDominatorTreeAnalysis` - Add `MachineDominatorTreePrinterPass` There is no test for this analysis in codebase. Also, the pass name is renamed to `machine-dom-tree` instead of `machinedomtree`.
LLVM Buildbot has detected a new failure on builder Full details are available at: https://lab.llvm.org/buildbot/#/builders/151/builds/285 Here is the relevant piece of the build log for the reference:
|
…s manager Follows llvm#95879.
…s manager Follows llvm#95879.
…s manager Follows llvm#95879.
…s manager Follows llvm#95879.
…ager (llvm#95879) - Add `MachineDominatorTreeAnalysis` - Add `MachineDominatorTreePrinterPass` There is no test for this analysis in codebase. Also, the pass name is renamed to `machine-dom-tree` instead of `machinedomtree`.
…s manager (llvm#96378) Follows llvm#95879.
MachineDominatorTreeAnalysis
MachineDominatorTreePrinterPass
There is no test for this analysis in codebase.Also, the pass name is renamed to
machine-dom-tree
instead ofmachinedomtree
.