[PATCH] D123776: [Support] Optimize (.*) regex matches

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 19 07:09:00 PDT 2022


nikic closed this revision.
nikic added a comment.

Landed as https://github.com/llvm/llvm-project/commit/653de14f17215c540a7dc058acb3c29a28ef0f1c, forgot to add differential revision tag.

I also gave `std::regex` a try, with the following patch: https://gist.github.com/nikic/9608b350a821740402115790fd2a906f This actually had good performance on `clang/test/CodeGen/RISCV/rvv-intrinsics/vloxseg_mask.c` -- but the `multiline` support that is needed by FileCheck is apparently only part of C++17 (if compilers implement it at all?) so this doesn't work for our purpose. I tried emulating it, but that would require support for lookbehind assertions, which is also missing.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123776/new/

https://reviews.llvm.org/D123776



More information about the llvm-commits mailing list