[PATCH] D39973: Fix CaptureTracking for llvm.invariant.group.barrier
Yaxun Liu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 13 13:47:19 PST 2017
yaxunl added inline comments.
================
Comment at: lib/Analysis/CaptureTracking.cpp:247
+ // Intrinsic function invariant_group_barrier does not capture pointer.
+ if (isa<IntrinsicInst>(I) && cast<IntrinsicInst>(I)->getIntrinsicID() ==
+ Intrinsic::invariant_group_barrier) {
----------------
rampitec wrote:
> Can we mark it as "NoCapture<0>" instead?
line 243 also checks I->getType()->isVoidTy(), but this intrinsic returns a pointer. So even if we make it NoCapture, it still does not work.
https://reviews.llvm.org/D39973
More information about the llvm-commits
mailing list