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: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to