[PATCH] D149132: [LICM] Reassociate & hoist add expressions

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 25 22:28:17 PDT 2023


mkazantsev planned changes to this revision.
mkazantsev added a comment.

In D149132#4296348 <https://reviews.llvm.org/D149132#4296348>, @nikic wrote:

> Proof: https://alive2.llvm.org/ce/z/imgdNt
>
> Somewhat skeptical about introducing SCEV use in LICM. As you are actually reasoning about loop invariants here, do we need SCEV? Would using computeOverflowForSignedSub() from ValueTracking work, possibly even provide better results?

Let me check if it achieves the same result.


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

https://reviews.llvm.org/D149132



More information about the llvm-commits mailing list