diff options
| author | Sam Parker <sam.parker@arm.com> | 2019-06-17 13:39:28 +0000 |
|---|---|---|
| committer | Sam Parker <sam.parker@arm.com> | 2019-06-17 13:39:28 +0000 |
| commit | 1bd3d00e7e5a299cefb2cd4759de30aafd7d1c7c (patch) | |
| tree | 8de221318778a2af7195c530785f5ada8b6f38bc /llvm/lib/Target | |
| parent | 7dc917603be45fa3f5e81b25e860514ab479a531 (diff) | |
| download | bcm5719-llvm-1bd3d00e7e5a299cefb2cd4759de30aafd7d1c7c.tar.gz bcm5719-llvm-1bd3d00e7e5a299cefb2cd4759de30aafd7d1c7c.zip | |
[CodeGen] Check for HardwareLoop Latch ExitBlock
The HardwareLoops pass finds exit blocks with a scevable exit count.
If the target specifies to update the loop counter in a register,
through a phi, we need to ensure that the exit block is a latch so
that we can insert the phi with the correct value for the incoming
edge.
Differential Revision: https://reviews.llvm.org/D63336
llvm-svn: 363556
Diffstat (limited to 'llvm/lib/Target')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp b/llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp index a57a4049dbc..ca905dfc7ff 100644 --- a/llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp +++ b/llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp @@ -702,10 +702,6 @@ bool ARMTTIImpl::isHardwareLoopProfitable(Loop *L, ScalarEvolution &SE, if (!ST->hasLOB() || DisableLowOverheadLoops) return false; - // For now, for simplicity, only support loops with one exit block. - if (!L->getExitBlock()) - return false; - if (!SE.hasLoopInvariantBackedgeTakenCount(L)) return false; |

