[PATCH] D105505: [LV] Unconditionally branch from middle to scalar preheader if the scalar loop must execute (try 4)

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 7 07:53:31 PDT 2021


reames abandoned this revision.
reames added a comment.

Note to future self...

If this doesn't stick, we could consider generating a switch with a case for each (dead) exit instead.  We could both assert that the switch is only used with requireScalarEpilogue and insert trap insts along the dead edges.  This would likely restrict miscompiles to the non-latch exit case and might be easier to debug if needed.


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

https://reviews.llvm.org/D105505



More information about the llvm-commits mailing list