In preparation for porting GlobalDCE to the new PM.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
| include/llvm/Transforms/IPO/GlobalDCE.h | ||
|---|---|---|
| 44 ↗ | (On Diff #55842) | Can we split what is the "pass" and what is the actual utility? |
Comment Actions
I think it's possible, but maybe overkill? Probably people with more experience porting passes can tell what they think.
Comment Actions
I think this should be the standard layout, it should be the exception to merge together the utility logic and the pass logic.
| include/llvm/Transforms/IPO/GlobalDCE.h | ||
|---|---|---|
| 31 ↗ | (On Diff #55842) | why? |
| lib/LTO/LTOCodeGenerator.cpp | ||
|---|---|---|
| 107 ↗ | (On Diff #55842) | GlobalDCELegacyPassPass? |
| lib/LTO/LTOCodeGenerator.cpp | ||
|---|---|---|
| 107 ↗ | (On Diff #55842) | Just followed what was already there. See, for example InstructionCombining or GlobalOPT. |