aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2024-02-13 16:41:00 +0100
committerGitHub <noreply@github.com>2024-02-13 16:41:00 +0100
commit25b9ed6e4964344e3710359bec4c831e5a8448b9 (patch)
tree8f6b5a69ba66cb94cf556333b1d057fd21c2288a /flang/lib/Frontend/CompilerInvocation.cpp
parent89c1bf1230e011f2f0e43554c278205fa1819de5 (diff)
downloadllvm-25b9ed6e4964344e3710359bec4c831e5a8448b9.zip
llvm-25b9ed6e4964344e3710359bec4c831e5a8448b9.tar.gz
llvm-25b9ed6e4964344e3710359bec4c831e5a8448b9.tar.bz2
[DAGCombine] Fix multi-use miscompile in load combine (#81586)
The load combine replaces a number of original loads with one new loads and also replaces the output chains of the original loads with the output chain of the new load. This is incorrect if the original load is retained (due to multi-use), as it may get incorrectly reordered. Fix this by using makeEquivalentMemoryOrdering() instead, which will create a TokenFactor with both chains. Fixes https://github.com/llvm/llvm-project/issues/80911.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions