diff options
author | Yaxun Liu <Yaxun.Liu@amd.com> | 2018-03-02 16:22:32 +0000 |
---|---|---|
committer | Yaxun Liu <Yaxun.Liu@amd.com> | 2018-03-02 16:22:32 +0000 |
commit | 3c42f1c3c90c5c20f3539048f1ed3f685cc914c6 (patch) | |
tree | 0d8f309bd855bb5a5075af127ab1b97cc3c3f4d0 /llvm/test/CodeGen/AMDGPU | |
parent | 505614bb4f695cb2d028726c8f37951f4ed831cf (diff) | |
download | bcm5719-llvm-3c42f1c3c90c5c20f3539048f1ed3f685cc914c6.tar.gz bcm5719-llvm-3c42f1c3c90c5c20f3539048f1ed3f685cc914c6.zip |
LoopUnroll: respect pragma unroll when AllowRemainder is disabled
Currently when AllowRemainder is disabled, pragma unroll count is not
respected even though there is no remainder. This bug causes a loop
fully unrolled in many cases even though the user specifies a unroll
count. Especially it affects OpenCL/CUDA since in many cases a loop
contains convergent instructions and currently AllowRemainder is
disabled for such loops.
Differential Revision: https://reviews.llvm.org/D43826
llvm-svn: 326585
Diffstat (limited to 'llvm/test/CodeGen/AMDGPU')
0 files changed, 0 insertions, 0 deletions