diff options
author | Philip Reames <listmail@philipreames.com> | 2018-08-29 21:49:30 +0000 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2018-08-29 21:49:30 +0000 |
commit | f562fc8dbf279cf9c3ce2579d310c4afc448308a (patch) | |
tree | 1de5b869995e11571efe8534ea042eb00b132989 /lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp | |
parent | fd48b7d5586189173f3d45d0b98952ab59d301cd (diff) | |
download | bcm5719-llvm-f562fc8dbf279cf9c3ce2579d310c4afc448308a.tar.gz bcm5719-llvm-f562fc8dbf279cf9c3ce2579d310c4afc448308a.zip |
[LICM] Hoist stores of invariant values to invariant addresses out of loops
Teach LICM to hoist stores out of loops when the store writes to a location otherwise unused in the loop, writes a value which is invariant, and is guaranteed to execute if the loop is entered.
Worth noting is that this transformation is partially overlapping with the existing promotion transformation. Reasons this is worthwhile anyway include:
* For multi-exit loops, this doesn't require duplication of the store.
* It kicks in for case where we can't prove we exit through a normal exit (i.e. we may throw), but can prove the store executes before that possible side exit.
Differential Revision: https://reviews.llvm.org/D50925
llvm-svn: 340974
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/signals/main.cpp')
0 files changed, 0 insertions, 0 deletions