[PATCH] D44821: [NFC] OptPassGate extracted from OptBisect

Andy Kaylor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 23 10:39:30 PDT 2018


andrew.w.kaylor added inline comments.


================
Comment at: include/llvm/IR/OptBisect.h:19-21
+#include "llvm/Analysis/CallGraphSCCPass.h"
+#include "llvm/Analysis/LoopInfo.h"
+#include "llvm/Analysis/RegionInfo.h"
----------------
fedor.sergeev wrote:
> Hmm.. can we avoid adding these headers and add forward declarations of all the necessary classes, please?
> (the problem of layering has been just recently discussed on llvm-dev@)
Forward declaration doesn't really fix the layering problem. We really need to not use these classes.

The trouble is that at least in the OptBisect case we don't really want to build the description unless we're doing OptBisect, but we can't build the description for CallGraphSCC without having the layering problem.


https://reviews.llvm.org/D44821





More information about the llvm-commits mailing list