Issue 115341
Summary [DSE] Missed optimization
Labels new issue
Assignees
Reporter omern1
    ```ll
; Build with opt --passes='dse' -debug

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z9eaot_testv() {
  store i32 3267512, ptr inttoptr (i64 68719476864 to ptr), align 4
  %1 = load i32, ptr inttoptr (i64 68719476812 to ptr), align 4
  store i32 %1, ptr inttoptr (i64 137438953472 to ptr), align 4
  store i32 3267516, ptr inttoptr (i64 68719476864 to ptr), align 4
  ret void
}
```

The first store and the load `%1` don't actually alias but DSE fails to delete redundant stores (first and last).
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to