[all-commits] [llvm/llvm-project] ff9557: LAA cannot vectorize lib calls like modf/modff
Paschalis Mpeis via All-commits
all-commits at lists.llvm.org
Wed Jan 17 04:20:56 PST 2024
Branch: refs/heads/users/paschalis-mpeis/laa-vectorize-modf
Home: https://github.com/llvm/llvm-project
Commit: ff9557fe913fd7901cd5a18757a2a41bffbe5c0e
https://github.com/llvm/llvm-project/commit/ff9557fe913fd7901cd5a18757a2a41bffbe5c0e
Author: Paschalis Mpeis <Paschalis.Mpeis at arm.com>
Date: 2024-01-17 (Wed, 17 Jan 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: 2a3b1e60c3f68c2f823a42bcd6e67111a0b8a529
https://github.com/llvm/llvm-project/commit/2a3b1e60c3f68c2f823a42bcd6e67111a0b8a529
Author: Paschalis Mpeis <Paschalis.Mpeis at arm.com>
Date: 2024-01-17 (Wed, 17 Jan 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.
Compare: https://github.com/llvm/llvm-project/compare/ff9557fe913f%5E...2a3b1e60c3f6
More information about the All-commits
mailing list