Create the ability to compute IDF using a CFG View.
For this, we'll need a new DT created using a list of Updates (to be refactored later to a GraphDiff), and the GraphTraits based on the same GraphDiff.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Never touched this code, so all I can offer is a style nit. Thanks for the patch!
lib/Analysis/IteratedDominanceFrontier.cpp | ||
---|---|---|
65 ↗ | (On Diff #160480) | nit: Unless this is consistent with the rest of the file, please spell this DoWork (there was a llvm-dev thread about this recently. My interpretation is that upper-camel is winning, but I'm also slightly biased.) |
lib/Analysis/IteratedDominanceFrontier.cpp | ||
---|---|---|
93 ↗ | (On Diff #160480) | I don't think that's how GraphTraits is intended to work, but your comment helped me understand that the InverseGraph bool is actually a property of the GraphDiff (just like doms), so it should be a template argument, not an argument to all methods. I'll send a follow-up patch to the one adding GraphDiff to make that change and rebase this patch. |
Address style comments.
Rebase on top of patch making GraphDiff templated on IsPostDom/InverseGraph.