summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/finishSwigPythonLLDB.py
diff options
context:
space:
mode:
authorChen Li <meloli87@gmail.com>2015-11-02 22:00:15 +0000
committerChen Li <meloli87@gmail.com>2015-11-02 22:00:15 +0000
commitd7153101621bd09b6f07371a75c0f316085e8e62 (patch)
treebfb9d868ee7bfe8e9a5108c6d4bb2a925fc9ae07 /lldb/scripts/Python/finishSwigPythonLLDB.py
parent407b5c62bae52c77efaf0cfa477cc0cbfc09bd85 (diff)
downloadbcm5719-llvm-d7153101621bd09b6f07371a75c0f316085e8e62.tar.gz
bcm5719-llvm-d7153101621bd09b6f07371a75c0f316085e8e62.zip
[IndVarSimplify] Rewrite loop exit values with their initial values from loop preheader
Summary: This patch adds support to check if a loop has loop invariant conditions which lead to loop exits. If so, we know that if the exit path is taken, it is at the first loop iteration. If there is an induction variable used in that exit path whose value has not been updated, it will keep its initial value passing from loop preheader. We can therefore rewrite the exit value with its initial value. This will help remove phis created by LCSSA and enable other optimizations like loop unswitch. Reviewers: sanjoy Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D13974 llvm-svn: 251839
Diffstat (limited to 'lldb/scripts/Python/finishSwigPythonLLDB.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud