[all-commits] [llvm/llvm-project] a86070: [flang-rt] Simplify INDEX with len-1 SUBSTRING. (#...

Slava Zakharin via All-commits all-commits at lists.llvm.org
Wed Apr 30 08:25:27 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a8607063f32a14a6cf453c84edcb21d08f517f25
      https://github.com/llvm/llvm-project/commit/a8607063f32a14a6cf453c84edcb21d08f517f25
  Author: Slava Zakharin <szakharin at nvidia.com>
  Date:   2025-04-30 (Wed, 30 Apr 2025)

  Changed paths:
    M flang-rt/lib/runtime/character.cpp
    M flang-rt/unittests/Runtime/CharacterTest.cpp

  Log Message:
  -----------
  [flang-rt] Simplify INDEX with len-1 SUBSTRING. (#137889)

The len-1 case is noticeably slower than gfortran's straightforward
implementation
https://github.com/gcc-mirror/gcc/blob/075611b646e5554ae02b2622061ea1614bf16ead/libgfortran/intrinsics/string_intrinsics_inc.c#L253
This change speeds up a simple microkernel by 37% on icelake.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list