| Issue |
235724
|
| Summary |
llubi accepts conflicting accesses declared non-aliasing by TBAA
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
Roticv912
|
A store and a load access the same location with TBAA tags declaring unrelated types and execution finishes without reporting undefined behavior.
### Program
```llvm
@g = global i32 0
!0 = !{!"root"}
!1 = !{!"A", !0}
!2 = !{!"B", !0}
!3 = !{!1, !1, i64 0}
!4 = !{!2, !2, i64 0}
define i32 @main() {
entry:
store i32 1, ptr @g, !tbaa !3
%x = load i32, ptr @g, !tbaa !4
ret i32 0
}
```
### Output
```
Entering function: main
store i32 1, ptr @g, align 4, !tbaa !3
%x = load i32, ptr @g, align 4, !tbaa !4 => i32 1
ret i32 0
Exiting function: main
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs