[PATCH] D83869: [Loop Simplify] Resolve an issue where metadata is not applied to a loop latch.
Alina Sbirlea via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 15 11:30:26 PDT 2020
asbirlea accepted this revision.
asbirlea added a comment.
This revision is now accepted and ready to land.
Thank you.
================
Comment at: llvm/lib/Transforms/Utils/BasicBlockUtils.cpp:811
+ if (L && OldLatch) {
+ BasicBlock *NewLatch = L->getLoopLatch();
----------------
nit: it's enough to check `if (OldLatch)`.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D83869/new/
https://reviews.llvm.org/D83869
More information about the llvm-commits
mailing list