[PATCH] D154205: [MachineLICM] Handle subloops

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 12 10:01:01 PDT 2023


nikic added a comment.

> we could skip to visit basic blocks which are already visited with inner loop because the loop invariant code of the inner loop has already been hoisted to inner loop's preheader.

Please do implement this (and revert this patch in the meantime if non-trivial). LICM should visit each block only once, not once per parent loop.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D154205



More information about the llvm-commits mailing list