]> granicus.if.org Git - llvm/commit
[AMDGPU] Boost unroll threshold for loops reading local memory
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Tue, 28 Mar 2017 22:13:51 +0000 (22:13 +0000)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Tue, 28 Mar 2017 22:13:51 +0000 (22:13 +0000)
commite42e44c7e3f85c565ec68642e34c38161db37cf7
treee2704293e6444025816d7db2f6488581c32b1c34
parent7a9c51436fa73490adde88660bb31f1205cffd42
[AMDGPU] Boost unroll threshold for loops reading local memory

This is less important than increase threshold for private memory,
but still brings performance improvements in a wide range of tests.
Unrolling more for local memory serves three purposes: it allows
to combine ds operations if offset becomes static, saves registers
used for offsets in case of static offsets, and allows better lds
latency hiding.

Differential Revision: https://reviews.llvm.org/D31412

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298948 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
test/CodeGen/AMDGPU/unroll.ll