[PATCH] D149373: [NFC][LICM] Add test case on widenable condition hoisting opportunity

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 27 19:21:11 PDT 2023


skatkov accepted this revision.
skatkov added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/test/Transforms/LICM/explicit_guards.ll:130
+; TODO: Hoist widenable condition out of loop since it's the only
+; non-invariant operand of its user
+define void @hoist_widenable_cond(ptr %p, i32 %x) {
----------------
I would add a description of opportunity.
If we hoist WC we could hoist and as well otherwise it prevents us from doing that.


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

https://reviews.llvm.org/D149373



More information about the llvm-commits mailing list