aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2023-10-05 11:19:26 +0200
committerNikita Popov <npopov@redhat.com>2023-10-05 11:21:33 +0200
commit46aac949bcfef83d03bffd849955c84c6a8e7c31 (patch)
tree1a08771f4fb7098dafeacd13dfc379ffab6dcabc /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent59e75b7df26ffcab067c269249abd00acee29269 (diff)
downloadllvm-46aac949bcfef83d03bffd849955c84c6a8e7c31.zip
llvm-46aac949bcfef83d03bffd849955c84c6a8e7c31.tar.gz
llvm-46aac949bcfef83d03bffd849955c84c6a8e7c31.tar.bz2
[GVN] Remove users from ICF when RAUWing loads
When performing store to load forwarding, replacing users of the load may turn an indirect call into one with a known callee, in which case it might become willreturn, invalidating cached ICF information. Avoid this by removing users. This is a bit more aggressive than strictly necessary (e.g. this shouldn't be necessary when doing load-load CSE), but better safe than sorry. Fixes https://github.com/llvm/llvm-project/issues/48805.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions