[PATCH] D30333: Split SimplifyCFG to run obscuring switch transforms only during last phase

Mehdi AMINI via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 6 17:20:12 PST 2017


mehdi_amini added a comment.

My favorite way is: echo "" | clang -x c - -c -mllvm -debug-pass=Structure -O2

  Profile summary info
    ModulePass Manager
      [...]
      FunctionPass Manager
        [...]
        Simplify the CFG
      [...]
      Call Graph SCC Pass Manager
        Remove unused exception handling info
        Function Integration/Inlining
        Deduce function attributes
        FunctionPass Manager
          [...]
          Simplify the CFG
          [...]
          Simplify the CFG

The indentation shows the nesting, and the `Call Graph SCC Pass Manager` will schedule whatever is nested under it to run first on a callee before moving to the caller (SCC wise).


https://reviews.llvm.org/D30333





More information about the llvm-commits mailing list