[llvm-bugs] [Bug 44314] New: [Attributor] Alignment assumption via @llvm.assume() not parsed

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Dec 16 09:05:31 PST 2019


            Bug ID: 44314
           Summary: [Attributor] Alignment assumption via @llvm.assume()
                    not parsed
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Global Analyses
          Assignee: unassignedbugs at nondot.org
          Reporter: lebedev.ri at gmail.com
                CC: llvm-bugs at lists.llvm.org

void* t0(void *x) {
    return __builtin_assume_aligned(x, 16);

with -O3 -mllvm -attributor-disable=false
still results in

define dso_local i8* @t0(i8* returned %0) local_unnamed_addr #0 {

I'm pretty sure we should recognize that alignment assumption,
and annotate returned value with align=16
There's likely similar things for other assumptions (non-null-ness e.g.)

I'm not sure how involved that is, but i'd like to take a look..

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/20191216/f6aa46df/attachment-0001.html>

More information about the llvm-bugs mailing list