1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 12:43:36 +01:00

Change LoopInfo::empty to isInnermost after D82895

This commit is contained in:
Fangrui Song 2020-09-22 14:07:39 -07:00
parent 22876f12a9
commit 9e917a5915

View File

@ -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;
}
}