Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
The new pass needs to be added to PassRegistry.def, then you can just test using the same test case added with your earlier patch and invoke opt a second time with "-passes=hotcoldsplit" (or whatever name you register it with) - the -passes= will use the new pass manager.
lib/Passes/PassBuilder.cpp | ||
---|---|---|
195 ↗ | (On Diff #167672) | No need to make a new new pass manager specific option here. Just share the one used by the other pass manager. Which pass manager is used by the compile will determine where it gets enabled. |
Modified the testcases to use both pass managers
Use single commandline flag for both pass managers.
LGTM with one minor fix noted below. Thanks! I will give it a shot with our apps which use the new PM.
lib/Transforms/IPO/PassManagerBuilder.cpp | ||
---|---|---|
107 ↗ | (On Diff #167940) | nit: these lines now have a spurious change (line wrapping changed) which can be removed before commit. |
Clarification: I wasn't going to test until this patch was submitted. I wanted this one to go in so I can test the underlying hot cold splitting pass with the new PM. So please don't wait for me!