[PATCH] D104180: [NFC] [LICM] Create LoopNest Invariant Code Motion (LNICM) pass

Alina Sbirlea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 15 10:47:38 PDT 2021


asbirlea added a comment.

In D104180#2819846 <https://reviews.llvm.org/D104180#2819846>, @uint256_t wrote:

> Actually, LNICM is to enable other optimizations in loop pipeline that require perfect loop nest by hoisting innermost invariants out of loop nest at once.
> I said that LNICM can efficiently perform LICM, but after tweaking the code and running some tests, I realized that it might not get faster.
> However, even if it gets no faster, LNICM is worth adding as a new pass.

If we get the code duplication and no faster code, why is it worth adding? Could you please clarify?


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

https://reviews.llvm.org/D104180



More information about the llvm-commits mailing list