[PATCH] D93906: [LoopDeletion] Break backedge of loops when known not taken
    Johannes Doerfert via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Sun Jan  3 11:42:44 PST 2021
    
    
  
jdoerfert accepted this revision.
jdoerfert added a comment.
This revision is now accepted and ready to land.
LGTM, one nit. I haven't run it but it looks reasonable. Unclear if there is much we can do by staring at it longer.
================
Comment at: llvm/lib/Transforms/Utils/LoopUtils.cpp:764
+  assert(Latch);
+  auto *Header = L->getHeader();
+
----------------
Nit: Add a message to the assert.
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D93906/new/
https://reviews.llvm.org/D93906
    
    
More information about the llvm-commits
mailing list