[PATCH] D118808: Loop Strength Reduce - Optimize unused IVs to final values in the exit block with SCEV

Zaara Syeda via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 2 11:55:40 PST 2022


syzaara added a comment.

In D118808#3290873 <https://reviews.llvm.org/D118808#3290873>, @lebedev.ri wrote:

> This is normally a IndVar's problem, but i guess LSR runs so late that there is no IndVar's scheduled after it?
> Do you have a phase-ordering test showing this missing simplification?

I verified that adding IndVarSimplifyPass after LSR will also remove the unused IV from the example testcase.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D118808/new/

https://reviews.llvm.org/D118808



More information about the llvm-commits mailing list