diff options
author | AdityaK <hiraditya@msn.com> | 2024-05-12 19:41:54 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-12 19:41:54 -0700 |
commit | abe3c5ac19e455d8a6df3120fa5e7a6e5f9005a6 (patch) | |
tree | 75c3548cd1801c34dcc5078a25818fc17f9ca27c /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | de641e289269061f8bdb138bb5c50e27ef4b354f (diff) | |
download | llvm-abe3c5ac19e455d8a6df3120fa5e7a6e5f9005a6.zip llvm-abe3c5ac19e455d8a6df3120fa5e7a6e5f9005a6.tar.gz llvm-abe3c5ac19e455d8a6df3120fa5e7a6e5f9005a6.tar.bz2 |
[GVNSink] Fix non-determinisms by using a deterministic ordering (#90995)
GVNSink used to order instructions based on their pointer values and was
prone to non-determinism because of that.
This patch ensures all the values stored are using a deterministic
order. I have also added a verfier(`ModelledPHI::verifyModelledPHI`) to
assert when ordering isn't preserved.
Additionally, I have added a test case (mirror graph image of an
existing test) that would have failed before this patch.
Fixes: #77852
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions