projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7873e5
)
Change LoopInfo::empty to isInnermost after D82895
author
Fangrui Song
<i@maskray.me>
Tue, 22 Sep 2020 21:07:39 +0000
(14:07 -0700)
committer
Fangrui Song
<i@maskray.me>
Tue, 22 Sep 2020 21:07:40 +0000
(14:07 -0700)
llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
b/llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
index
fb954e6
..
78dc20b
100644
(file)
--- 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;
}
}