[LLVMbugs] [Bug 16294] New: implement __builtin_assume_aligned()

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jun 10 23:58:39 PDT 2013


            Bug ID: 16294
           Summary: implement __builtin_assume_aligned()
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: conradsand.arma at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


Thanks for your work on clang.  It would be very useful to implement the
__builtin_assume_aligned() function, which allows the compiler to assume that
the returned pointer is aligned (to a user specified number of bytes). This can
help in automatic vectorisation, allowing the compiler to use aligned SSE2

GCC 4.7+ has this:

The __builtin_assume_aligned() function is used to speed up software such as
the Armadillo C++ linear algebra library:

You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20130611/3244f836/attachment.html>

More information about the llvm-bugs mailing list