[PATCH] D39973: Fix CaptureTracking for llvm.invariant.group.barrier

Piotr Padlewski via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 14 03:15:07 PST 2017


Prazek added a comment.

Firstly, are you sure that the invariant.group.barrier is the problem here? I didn't hear that it is used anywhere besides devirtualization, that is not turned on by default.
Here is my old path that was never reviewed:
https://reviews.llvm.org/D32673

As you can see, in order to check if the pointer passed to the barrier is captured, we need to check if all uses of the pointer returned by the barrier is not captured.


https://reviews.llvm.org/D39973





More information about the llvm-commits mailing list