diff options
author | Daniil Suchkov <dsuchkov@azul.com> | 2019-11-08 14:29:04 +0700 |
---|---|---|
committer | Daniil Suchkov <suc-daniil@yandex.ru> | 2019-11-13 17:00:34 +0700 |
commit | bbb29738b58aaf6f6518269abdcf8f64131665a9 (patch) | |
tree | d0dc5e4c8ca1e2c174147327a6db4d4dcbb8917d /llvm/lib/CodeGen/LiveDebugValues.cpp | |
parent | 9a1c243aa5ded10f7b39887b2be073d0bcfbf5c9 (diff) | |
download | llvm-bbb29738b58aaf6f6518269abdcf8f64131665a9.zip llvm-bbb29738b58aaf6f6518269abdcf8f64131665a9.tar.gz llvm-bbb29738b58aaf6f6518269abdcf8f64131665a9.tar.bz2 |
[InstCombine] Fold PHIs with equal incoming pointers
In case when all incoming values of a PHI are equal pointers, this
transformation inserts a definition of such a pointer right after
definition of the base pointer and replaces with this value both PHI and
all it's incoming pointers. Primary goal of this transformation is
canonicalization of this pattern in order to enable optimizations that
can't handle PHIs. Non-inbounds pointers aren't currently supported.
Reviewers: spatel, RKSimon, lebedev.ri, apilipenko
Reviewed By: apilipenko
Tags: #llvm
Subscribers: hiraditya, llvm-commits
Differential Revision: https://reviews.llvm.org/D68128
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues.cpp')
0 files changed, 0 insertions, 0 deletions