]> granicus.if.org Git - llvm/commit
Merging r228303:
authorTom Stellard <thomas.stellard@amd.com>
Thu, 5 Feb 2015 18:05:18 +0000 (18:05 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 5 Feb 2015 18:05:18 +0000 (18:05 +0000)
commitf518f53f5e756eed9a6ef9f667bab5ad1cb12bc6
treefe92998c60aa0974d05cf00087290bcde05646c6
parent4cbaf6f1ce58dfbff474c65691cd5206ee84f7cc
Merging r228303:

------------------------------------------------------------------------
r228303 | thomas.stellard | 2015-02-05 10:32:18 -0500 (Thu, 05 Feb 2015) | 11 lines

R600/SI: Fix bug in TTI loop unrolling preferences

We should be setting UnrollingPreferences::MaxCount to MAX_UINT instead
of UnrollingPreferences::Count.

Count is a 'forced unrolling factor', while MaxCount sets an upper
limit to the unrolling factor.

Setting Count to MAX_UINT was causing the loop in the testcase to be
unrolled 15 times, when it only had a maximum of 4 iterations.

------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_36@228320 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/R600/AMDGPUTargetTransformInfo.cpp
test/CodeGen/R600/tti-unroll-prefs.ll [new file with mode: 0644]