[all-commits] [llvm/llvm-project] 9e6020: LAA cannot vectorize lib calls like modf/modff
Paschalis Mpeis via All-commits
all-commits at lists.llvm.org
Tue Jan 23 06:07:12 PST 2024
Branch: refs/heads/users/paschalis-mpeis/laa-vectorize-modf
Home: https://github.com/llvm/llvm-project
Commit: 9e6020071d90decae5d61eced320a3f114b9d2a1
https://github.com/llvm/llvm-project/commit/9e6020071d90decae5d61eced320a3f114b9d2a1
Author: Paschalis Mpeis <Paschalis.Mpeis at arm.com>
Date: 2024-01-23 (Tue, 23 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: 97ebe120a9971903ed2aacd03db3fccd35452a30
https://github.com/llvm/llvm-project/commit/97ebe120a9971903ed2aacd03db3fccd35452a30
Author: Paschalis Mpeis <Paschalis.Mpeis at arm.com>
Date: 2024-01-23 (Tue, 23 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.
Commit: 4c59a94da22db24deb0211ddabd6fd7f7e217991
https://github.com/llvm/llvm-project/commit/4c59a94da22db24deb0211ddabd6fd7f7e217991
Author: Paschalis Mpeis <Paschalis.Mpeis at arm.com>
Date: 2024-01-23 (Tue, 23 Jan 2024)
Changed paths:
M llvm/lib/Analysis/LoopAccessAnalysis.cpp
Log Message:
-----------
Add check for the 'memory(argmem: write)' attribute.
Commit: db90ef59ddcf8c0f40889bce0e4c6613d876cbcc
https://github.com/llvm/llvm-project/commit/db90ef59ddcf8c0f40889bce0e4c6613d876cbcc
Author: Paschalis Mpeis <Paschalis.Mpeis at arm.com>
Date: 2024-01-23 (Tue, 23 Jan 2024)
Changed paths:
M clang/test/CodeGen/aarch64-veclib-function-calls-linear-ptrs.c
M llvm/lib/Analysis/LoopAccessAnalysis.cpp
Log Message:
-----------
Addressing reviewers
Compare: https://github.com/llvm/llvm-project/compare/1afad217bb9d...db90ef59ddcf
More information about the All-commits
mailing list