Issue 235730
Summary llubi accepts different values stored through the same invariant group pointer
Labels new issue
Assignees
Reporter Roticv912
    Two stores carrying !invariant.group write different values through the same pointer operand and execution finishes without reporting undefined behavior.

### Program
```llvm
!0 = !{}

define i32 @main() {
entry:
  %p = alloca i8
  store i8 0, ptr %p, !invariant.group !0
  store i8 1, ptr %p, !invariant.group !0
  ret i32 0
}
```

### Output
```
Entering function: main
  %p = alloca i8, align 1 => ptr 0x8 [p]
  store i8 0, ptr %p, align 1, !invariant.group !0
 store i8 1, ptr %p, align 1, !invariant.group !0
  ret i32 0
Exiting function: main
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to