[PATCH] D18527: Introduce a @llvm.experimental.guard.on intrinsic

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 30 14:23:05 PDT 2016


reames accepted this revision.
reames added a comment.
This revision is now accepted and ready to land.

LGTM.  This will probably evolve more as we explore how to actually use it, but doing that evolution in tree seems completely reasonable.


================
Comment at: lib/Transforms/Scalar/LowerGuardIntrinsic.cpp:73
@@ +72,3 @@
+bool LowerGuardIntrinsic::runOnFunction(Function &F) {
+  if (!F.getParent()->getFunction(
+          Intrinsic::getName(Intrinsic::experimental_guard))) {
----------------
Minor: also check uses.  


http://reviews.llvm.org/D18527





More information about the llvm-commits mailing list