This is an archive of the discontinued LLVM Phabricator instance.

[PM] pass -debug-pass-manager flag into FunctionToLoopPassAdaptor's canonicalization PM
ClosedPublic

Authored by fedor.sergeev on Dec 26 2017, 10:06 AM.

Details

Summary

New pass manager driver passes DebugPM (-debug-pass-manager) flag into
individual PassManager constructors in order to enable debug logging.
FunctionToLoopPassAdaptor has its own internal LoopCanonicalizationPM
which never gets its debug logging enabled and that means canonicalization
passes like LoopSimplify are never present in -debug-pass-manager output.

Extending FunctionToLoopPassAdaptor's constructor and
createFunctionToLoopPassAdaptor wrapper with an optional
boolean DebugLogging argument.

Passing debug-logging flags there as appropriate.

Event Timeline

fedor.sergeev created this revision.Dec 26 2017, 10:06 AM

clang-formatting

davide accepted this revision.Dec 28 2017, 11:49 AM

LGTM

This revision is now accepted and ready to land.Dec 28 2017, 11:49 AM
This revision was automatically updated to reflect the committed changes.