In preparation for porting GlobalDCE to the new PM.
Details
Details
Diff Detail
Diff Detail
Event Timeline
include/llvm/Transforms/IPO/GlobalDCE.h | ||
---|---|---|
44 | 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 | why? |
lib/LTO/LTOCodeGenerator.cpp | ||
---|---|---|
107 | GlobalDCELegacyPassPass? |
lib/LTO/LTOCodeGenerator.cpp | ||
---|---|---|
107 | Just followed what was already there. See, for example InstructionCombining or GlobalOPT. |
why?