aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2022-01-05 08:53:33 -0800
committerPhilip Reames <listmail@philipreames.com>2022-01-05 10:37:22 -0800
commit58a0e449e175e9ae48632b4bda1df1fc87f81323 (patch)
tree73dc7dd6cfad21c1e0c56c2c8c2d907457a8a1fb /llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
parentdd48c6aff99233ff46ab08009e26baf3b2ed6f14 (diff)
downloadllvm-58a0e449e175e9ae48632b4bda1df1fc87f81323.zip
llvm-58a0e449e175e9ae48632b4bda1df1fc87f81323.tar.gz
llvm-58a0e449e175e9ae48632b4bda1df1fc87f81323.tar.bz2
[instcombine] Allow sinking of calls with known writes to uses
If we have a call whose only side effect is a write to a location which is known to be dead, we can sink said call to the users of the call's result value. This is analogous to the recent changes to delete said calls if unused, but framed as a sinking transform instead. Differential Revision: https://reviews.llvm.org/D116200
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp')
0 files changed, 0 insertions, 0 deletions