Open dtcxzyw opened 2 months ago
@llvm/issue-subscribers-bug
Author: Yingwei Zheng (dtcxzyw)
I believe it is caused by https://github.com/llvm/llvm-project/commit/f05b15b21b46835efeb88eb8bfd456e82582722c.
This commit shouldn't be able to cause non-determinism, except through some indirect effect (e.g. shifting other pointer addresses due to different allocation pattern.)
It happened before 3c8f3b91d898cb3f76e1e430da98972cdf8a4a1c. Any thoughts?
Reproducer:
test.sh
I have seen this happen with other Rust programs as well. I am sorry I cannot provide a test case showing actual codegen difference.
I believe it is caused by https://github.com/llvm/llvm-project/commit/f05b15b21b46835efeb88eb8bfd456e82582722c. It has caused 150+ false alarms on my benchmark https://github.com/dtcxzyw/llvm-opt-benchmark/issues?page=6&q=is%3Aissue+label%3Anon-deterministic+is%3Aclosed. It is annoying and llvm-diff doesn't work around this.
cc @kazutakahirata @nikic @MaskRay