[PATCH] D41793: [Debugify] Add an env var to enable faster testing

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 5 16:48:13 PST 2018

vsk created this revision.
vsk added reviewers: davide, aemerson, MatzeB.
vsk added a project: debug-info.
Herald added a subscriber: JDevlieghere.

[Debugify] Add an env var to enable faster testing

This teaches opt and lit about a new environment variable,
LLVM_ENABLE_DEBUGIFY. When this variable is set, lit forwards it to opt,
which interprets it as if it were invoked with "-enable-debugify".

Opt's "-enable-debugify" mode adds an instance of Debugify at the
beginning of the pass pipeline, and an instance of CheckDebugify at the

Note that running test-suites with LLVM_ENABLE_DEBUGIFY set will result
in many failures due to strict FileCheck commands, etc.

It can be more useful to look for assertion failures which arise only
when Debugify is enabled, e.g to prove that we have (or do not have)
test coverage for some code path.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41793.128826.patch
Type: text/x-patch
Size: 3634 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180106/7eacbadd/attachment.bin>

More information about the llvm-commits mailing list