[llvm-bugs] [Bug 35702] New: TBAA information is absent for vector types

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Dec 20 03:14:25 PST 2017


https://bugs.llvm.org/show_bug.cgi?id=35702

            Bug ID: 35702
           Summary: TBAA information is absent for vector types
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: sepavloff at gmail.com
                CC: llvm-bugs at lists.llvm.org

Run commands:

$ cat bug-01.c
typedef int __attribute__((vector_size(16))) v4si;
void func(v4si *p) {
  v4si zero = { 0, 0, 0, 0 };
  *p = zero;
}
$ clang -S -emit-llvm -O1 bug-01.c

The resulting .ll file contains:

define void @func(<4 x i32>* nocapture %p) local_unnamed_addr #0 {
entry:
  store <4 x i32> zeroinitializer, <4 x i32>* %p, align 16, !tbaa !2
  ret void
}
...
!2 = !{!3, !3, i64 0}
!3 = !{!"omnipotent char", !4, i64 0}
!4 = !{!"Simple C/C++ TBAA"}

Type information about pointer target is lost.

-- 
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/20171220/bfeb5865/attachment.html>


More information about the llvm-bugs mailing list