[all-commits] [llvm/llvm-project] ae0c23: [Regex] Check two chars in step back optimization ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Jan 18 06:45:56 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ae0c232e46c8d8b4fc3d0e007094db216d7a82f6
      https://github.com/llvm/llvm-project/commit/ae0c232e46c8d8b4fc3d0e007094db216d7a82f6
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2023-01-18 (Wed, 18 Jan 2023)

  Changed paths:
    M llvm/lib/Support/regengine.inc

  Log Message:
  -----------
  [Regex] Check two chars in step back optimization (NFC)

When stepping back, and there is a following fixed character, also
try to check whether another following fixed character matches.

For our tests the next fixed character is often " ", which occurs
pretty frequently, so checking a second character is worthwhile in
practice.

This drops FileCheck runtime for the vloxseg.c test from 25s to
17s for me.




More information about the All-commits mailing list