[llvm-commits] New function attr: ExecuteBarrier to prevent llvm from duplicating barriers

Rotem, Nadav nadav.rotem at intel.com
Sun Feb 12 13:11:16 PST 2012


Hi,

Last year we talked about the problem of LLVM duplicating function calls that are considered 'barrier' in data-parallel languages, such as OpenCL.  I implemented Eli's proposal[1] to add a new function attribute (executebarrier) which prevents the duplication of barriers in a number of LLVM optimizations.  I still need to handle the loop unswitch pass and review a few other passes.

Please review the attached patch.

Thanks,
Nadav

[1] - http://lists.cs.uiuc.edu/pipermail/llvmdev/2009-October/026344.html

---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120212/7aaec193/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: barrier.patch
Type: application/octet-stream
Size: 8487 bytes
Desc: barrier.patch
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120212/7aaec193/attachment.obj>


More information about the llvm-commits mailing list