diff options
author | Dmitry Borisenkov <dmitriy.borisenkov89@gmail.com> | 2022-12-29 18:04:55 -0500 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2022-12-29 18:19:55 -0500 |
commit | 0ec51a460a308f10a21bbaa9d96cd6c3e8e6d834 (patch) | |
tree | 4cd017e2a277bc50f503b996db7db4be4b05ddfc /libclc | |
parent | e50976e56933c3e907246e01deb14b5dd485032b (diff) | |
download | llvm-0ec51a460a308f10a21bbaa9d96cd6c3e8e6d834.tar.gz |
DAG: Prevent store value forwarding to distinct addrspace load
DAGCombiner replaces (load const_addr1) directly chained with (store
(val, const_addr2)) with val if address space stripped const_addr1 ==
const_addr2. The patch fixes the issue by checking address spaces as
well. However, it might makes sense to not to chain together side
effects that belong to different address spaces in the first place and
make SelectionDAG::root address space aware.
Diffstat (limited to 'libclc')
0 files changed, 0 insertions, 0 deletions