[all-commits] [llvm/llvm-project] 869079: LAA cannot vectorize lib calls like modf/modff

Paschalis Mpeis via All-commits all-commits at lists.llvm.org
Thu Feb 22 02:23:04 PST 2024


  Branch: refs/heads/users/paschalis-mpeis/laa-vectorize-modf
  Home:   https://github.com/llvm/llvm-project
  Commit: 869079fa57b3a8da9b9f9ea541f7d542be1bb8bc
      https://github.com/llvm/llvm-project/commit/869079fa57b3a8da9b9f9ea541f7d542be1bb8bc
  Author: Paschalis Mpeis <Paschalis.Mpeis at arm.com>
  Date:   2024-02-22 (Thu, 22 Feb 2024)

  Changed paths:
    A clang/test/CodeGen/aarch64-veclib-function-calls-linear-ptrs.c

  Log Message:
  -----------
  LAA cannot vectorize lib calls like modf/modff

Functions like modf/modff are math lib calls that set memory write-only
attribute. Given that a target has vectorized mappings, LAA should allow
vectorization.


  Commit: 32d2b4581dd19e289f5b21de6de931b4f6268612
      https://github.com/llvm/llvm-project/commit/32d2b4581dd19e289f5b21de6de931b4f6268612
  Author: Paschalis Mpeis <Paschalis.Mpeis at arm.com>
  Date:   2024-02-22 (Thu, 22 Feb 2024)

  Changed paths:
    M clang/test/CodeGen/aarch64-veclib-function-calls-linear-ptrs.c
    M llvm/lib/Analysis/LoopAccessAnalysis.cpp

  Log Message:
  -----------
  [LV][LAA] Vectorize math lib calls with mem write-only attribute

Teach LAA to consider safe specific math lib calls which are known to
have set the memory write-only attribute. Those attributes are set to
calls by inferNonMandatoryLibFuncAttrs, in BuildLibCalls.cpp, and the
current ones are modf/modff and frexp/frexpf.

This happens only when the calls are found through TLI to have
vectorized counterparts.


  Commit: c3b40026342813f1bb4ff7b677d733bb1308c84b
      https://github.com/llvm/llvm-project/commit/c3b40026342813f1bb4ff7b677d733bb1308c84b
  Author: Paschalis Mpeis <Paschalis.Mpeis at arm.com>
  Date:   2024-02-22 (Thu, 22 Feb 2024)

  Changed paths:
    M llvm/lib/Analysis/LoopAccessAnalysis.cpp

  Log Message:
  -----------
  Add check for the 'memory(argmem: write)' attribute.


  Commit: bef52fc2e51fedca911c80e7a8ba83a7068be4d9
      https://github.com/llvm/llvm-project/commit/bef52fc2e51fedca911c80e7a8ba83a7068be4d9
  Author: Paschalis Mpeis <Paschalis.Mpeis at arm.com>
  Date:   2024-02-22 (Thu, 22 Feb 2024)

  Changed paths:
    M clang/test/CodeGen/aarch64-veclib-function-calls-linear-ptrs.c
    M llvm/lib/Analysis/LoopAccessAnalysis.cpp

  Log Message:
  -----------
  Addressing reviewers


  Commit: 2a385264b91c001b997ac50e76f49b9e5cecdf58
      https://github.com/llvm/llvm-project/commit/2a385264b91c001b997ac50e76f49b9e5cecdf58
  Author: Paschalis Mpeis <Paschalis.Mpeis at arm.com>
  Date:   2024-02-22 (Thu, 22 Feb 2024)

  Changed paths:
    M clang/test/CodeGen/aarch64-veclib-function-calls-linear-ptrs.c

  Log Message:
  -----------
  Rebased and updated test after PR #80296


Compare: https://github.com/llvm/llvm-project/compare/a18b4fe57f6a...2a385264b91c

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