aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-11-03 10:54:16 +0100
committerNikita Popov <npopov@redhat.com>2022-11-03 16:03:57 +0100
commit2ddcf721a0e8dafec5196001b2472480f0011887 (patch)
tree9d649b2cd8c9a5a4df046f2457e44e2d0f0b4c9f /flang/lib/Frontend/CompilerInvocation.cpp
parentd42cfc4be1562ce7a887842493bf54c5b22e5857 (diff)
downloadllvm-2ddcf721a0e8dafec5196001b2472480f0011887.zip
llvm-2ddcf721a0e8dafec5196001b2472480f0011887.tar.gz
llvm-2ddcf721a0e8dafec5196001b2472480f0011887.tar.bz2
[InstCombine] Perform memset -> load forwarding
InstCombine does some basic store to load forwarding. One case it currently misses is the case where the store is actually a memset. This patch adds support for this case. This is a minimal implementation that only handles a load at the memset base address, without an offset. GVN is already capable of performing this optimization. Having it in InstCombine can help with phase ordering issues, similar to the existing store to load forwarding. Differential Revision: https://reviews.llvm.org/D137323
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions