[PATCH] D115109: [LV] Do not fold the tail when an IV is used outside of the loop.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun May 15 13:58:47 PDT 2022


fhahn accepted this revision.
fhahn added a comment.
This revision is now accepted and ready to land.

LGTM, thanks!



================
Comment at: llvm/test/Transforms/LoopVectorize/pr52335.ll:11
+; CHECK-NEXT:    %n.mod.vf = urem i64 [[TC:%.*]], 4
+; CHECK-NEXT:    %n.vec = sub i64 [[TC]], %n.mod.vf
+entry:
----------------
I think it would be good to check the full vector body to make the test more robust. It would also be good to submit the test separately before and then only have the test-diff for the change here.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115109



More information about the llvm-commits mailing list