Issue 108828
Summary Miscompilation (bad optimization) - results change at `-O1`
Labels new issue
Assignees
Reporter ericastor
    I've had trouble minimizing this particular issue - `bugpoint` makes changes that start causing timeouts, and I don't know which passes are even at fault - but I've got an example of LLVM-IR code that produces different results (when run through either `lli` and `llc`) before and after optimization at `-O1`.

Before optimization, the attached file executes and exits with code 0; after optimization, it executes & exits with code 1.

Example code: [linked.ll.txt](https://github.com/user-attachments/files/17014317/linked.ll.txt)

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to