[PATCH] D85575: [ARM] Speed up arm-cortex-cpus.c test
Artem Belevich via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 7 17:30:21 PDT 2020
tra created this revision.
tra added a reviewer: LukeGeeson.
Herald added subscribers: danielkiss, sanjoy.google, bixia, kristof.beyls.
Herald added a project: clang.
tra requested review of this revision.
Trailing wildcard regex searches greedily continue searching through the whole
input and make the test unnecessarily slow.
Using equivalent plain text partial match speeds up the test execution time from ~25s down to ~5s.
See before/after results here:
https://gist.github.com/Artem-B/d0b05c2e98a49158c02de23f7f4f0279
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D85575
Files:
clang/test/Driver/arm-cortex-cpus.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85575.284101.patch
Type: text/x-patch
Size: 17304 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200808/20755d30/attachment-0001.bin>
More information about the cfe-commits
mailing list