[PATCH] D108107: [LoopFlatten] Fix overflow check

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 16 03:22:41 PDT 2021


dmgreen added a comment.

I think this needs to check that the GEP is used by a load/store that is executed on each iteration.

Can this use one of the isGuaranteedToExecute function too? There is a isGuaranteedToExecuteForEveryIteration, but it does not look very powerful. It may be OK for most loops though, where checking the inner loop header is enough.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D108107



More information about the llvm-commits mailing list