diff options
author | Zaara Syeda <syzaara@ca.ibm.com> | 2022-04-07 12:27:05 -0400 |
---|---|---|
committer | Zaara Syeda <syzaara@ca.ibm.com> | 2022-04-08 11:16:37 -0400 |
commit | 07005440ae148d1eb102493a1148e2818fab21e0 (patch) | |
tree | 98cf5585a8ab0fdc9b53be9c242c7c2012d82f76 /llvm/unittests/Support/VirtualFileSystemTest.cpp | |
parent | 476047bf8e720f3dc359cf75d1241e13f8ba2350 (diff) | |
download | llvm-07005440ae148d1eb102493a1148e2818fab21e0.zip llvm-07005440ae148d1eb102493a1148e2818fab21e0.tar.gz llvm-07005440ae148d1eb102493a1148e2818fab21e0.tar.bz2 |
[LSR] Optimize unused IVs to final values in the exit block
Loop Strength Reduce sometimes optimizes away all uses of an induction variable
from a loop but leaves the IV increments. When the only remaining use of the IV
is the PHI in the exit block, this patch will call rewriteLoopExitValues to
replace the exit block PHI with the final value of the IV to skip the updates
in each loop iteration.
Differential Revision: https://reviews.llvm.org/D118808
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions