Page MenuHomePhabricator

[Debugify] Skip debugifying on special/immutable passes

Authored by aeubanks on Mon, Nov 16, 11:53 AM.



With a function pass manager, it would insert debuginfo metadata before
getting to function passes while processing the pass manager, causing
debugify to skip while running the function passes.

Skip special passes + verifier + printing passes. Compared to the legacy
implementation of -debugify-each, this additionally skips verifier
passes. Probably no need to update the legacy version since it will be
obsolete soon.

This fixes 2 instcombine tests using -debugify-each under NPM.

Diff Detail

Event Timeline

aeubanks created this revision.Mon, Nov 16, 11:53 AM
aeubanks requested review of this revision.Mon, Nov 16, 11:53 AM
MaskRay accepted this revision.Mon, Nov 16, 6:50 PM


67 has rules about anonymous namespaces. Note that the existing usage does not stick with the rule.

This revision is now accepted and ready to land.Mon, Nov 16, 6:50 PM
aeubanks updated this revision to Diff 305647.Mon, Nov 16, 8:40 PM

make function static instead of in anon namespace

This revision was landed with ongoing or failed builds.Mon, Nov 16, 8:40 PM
This revision was automatically updated to reflect the committed changes.