This is an archive of the discontinued LLVM Phabricator instance.

Util: Improve update_llc_test_checks to scrub macosx-style assembly annotations
ClosedPublic

Authored by zvi on Sep 6 2017, 1:34 PM.

Details

Summary

In D37523 Sanjay pointed out that the tool does not scrub macosx-style 'End of Function' annotations,
where the comments begin with a double-#.

I tested this patch by verifying all existing occurences of 'End function' are scrubbed:
find ./test/CodeGen/X86 -name '*.ll' | xargs grep -l "End function" | xargs utils/update_llc_test_checks.py --llc-binary build/bin/llc

Diff Detail

Repository
rL LLVM

Event Timeline

zvi created this revision.Sep 6 2017, 1:34 PM
spatel accepted this revision.Sep 6 2017, 2:52 PM

LGTM - thanks!

As I wrote in the other review, the vast majority of x86 regression tests that I've seen that do specify an OS are doing so unnecessarily.
So I think we should just fix those RUN line triples as we're making other changes, but this will prevent comment noise distractions.

This revision is now accepted and ready to land.Sep 6 2017, 2:52 PM
This revision was automatically updated to reflect the committed changes.