From: Fangrui Song Date: Tue, 22 Sep 2020 21:07:39 +0000 (-0700) Subject: Change LoopInfo::empty to isInnermost after D82895 X-Git-Tag: llvmorg-13-init~11249 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49f2744931762323dfa5ef96e1baa12bb79d5b9a;p=platform%2Fupstream%2Fllvm.git Change LoopInfo::empty to isInnermost after D82895 --- diff --git a/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp b/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp index fb954e6..78dc20b 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp @@ -232,7 +232,7 @@ void AMDGPUTTIImpl::getUnrollingPreferences(Loop *L, ScalarEvolution &SE, // If we got a GEP in a small BB from inner loop then increase max trip // count to analyze for better estimation cost in unroll - if (L->empty() && BB->size() < UnrollMaxBlockToAnalyze) + if (L->isInnermost() && BB->size() < UnrollMaxBlockToAnalyze) UP.MaxIterationsCountToAnalyze = 32; } }