[PATCH] D134893: [LSR][TTI][RISCV] Add isAllowTerminatingConditionFoldingAfterLSR into TTI and enable it for RISC-V

Yueh-Ting (eop) Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 13 02:14:43 PDT 2022


eopXD added a comment.

In D134893#3855128 <https://reviews.llvm.org/D134893#3855128>, @JojoR wrote:

> I have a question about patch D132443 <https://reviews.llvm.org/D132443>, why do not you put optimization in pass "iv-users" ? I think it belongs to IV analyzation.
>
> because that the pass "iv-users" do analyzation only without any transformation ?

IVUser is an analysis pass, and the LSR pass uses it before doing strength reduction.
This transformation is beneficial after LSR, not before it.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D134893



More information about the llvm-commits mailing list