diff options
author | Anna Thomas <anna@azul.com> | 2017-12-04 15:11:48 +0000 |
---|---|---|
committer | Anna Thomas <anna@azul.com> | 2017-12-04 15:11:48 +0000 |
commit | 7b360434ff210560b9d7a2eb7ef90ef2480e51e1 (patch) | |
tree | 5ede9876a77e2165729a4c7d5ddc93ff897df06b /llvm/lib/CodeGen/MachineTraceMetrics.cpp | |
parent | d141e4806b5add600904948e866315c297d02860 (diff) | |
download | llvm-7b360434ff210560b9d7a2eb7ef90ef2480e51e1.zip llvm-7b360434ff210560b9d7a2eb7ef90ef2480e51e1.tar.gz llvm-7b360434ff210560b9d7a2eb7ef90ef2480e51e1.tar.bz2 |
[Loop Predication] Teach LP about reverse loops
Summary:
Currently, we only support predication for forward loops with step
of 1. This patch enables loop predication for reverse or
countdownLoops, which satisfy the following conditions:
1. The step of the IV is -1.
2. The loop has a singe latch as B(X) = X <pred>
latchLimit with pred as s> or u>
3. The IV of the guard is the decrement
IV of the latch condition (Guard is: G(X) = X-1 u< guardLimit).
This patch was downstream for a while and is the last series of patches
that's from our LP implementation downstream.
Reviewers: apilipenko, mkazantsev, sanjoy
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D40353
llvm-svn: 319659
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.cpp')
0 files changed, 0 insertions, 0 deletions