Currently nodes_iterator may dereference to a NodeType* or a NodeType&. Make them all dereference to NodeType*, which is NodeRef later.
Details
Diff Detail
Event Timeline
include/llvm/Analysis/CallGraph.h | ||
---|---|---|
463–500 | Same sort of feedback I gave on the equivalent code in Clang (why does the code in Clang look /so/ much the same & could we make some of it common?): A follow up commit to drop the "DerefFun" noise now that we can use decltype, etc. |
lib/Transforms/Scalar/NaryReassociate.cpp | ||
---|---|---|
212 | This is actually not preorder :) and could be replaced with the depth first iterator | |
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp | ||
1155 | Ditto, this is just depth_first, and should use that. | |
lib/Transforms/Scalar/StraightLineStrengthReduce.cpp | ||
680 | This whole glop is just a fancy way of saying: for (const auto *Node : depth_first(DT)) { allocateCandidatesAndFindBasis(I->getBlock()); } I'll fix it if you don't :) |
Same sort of feedback I gave on the equivalent code in Clang (why does the code in Clang look /so/ much the same & could we make some of it common?): A follow up commit to drop the "DerefFun" noise now that we can use decltype, etc.