[PATCH] D38336: Add an @llvm.sideeffect intrinsic

Daniel Berlin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 27 16:56:22 PDT 2017


dberlin added a comment.

Is literally the only purpose to handle infinite loops?
If so, please tighten up the description a bit.
(Right now "indicate that the loop shouldn't be optimized away even if it's an infinite
loop with no other side effects."  would cover unreachable loops, etc).

Do you expect it to keep provably finite loops that have it alive.
IE a loop where we can prove the backedge is not taken?


Repository:
  rL LLVM

https://reviews.llvm.org/D38336





More information about the llvm-commits mailing list