summaryrefslogtreecommitdiffstats
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorDinar Temirbulatov <dtemirbulatov@gmail.com>2018-12-15 14:37:01 +0000
committerDinar Temirbulatov <dtemirbulatov@gmail.com>2018-12-15 14:37:01 +0000
commit8c8724dd0d12b06178797b825177583c33002d96 (patch)
tree7a9b67d4726c69a2ac4a5a1c2f19a129a6bfa9d1 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parentbfbe510d4f127f916318c9b3712514cd5a031749 (diff)
downloadbcm5719-llvm-8c8724dd0d12b06178797b825177583c33002d96.tar.gz
bcm5719-llvm-8c8724dd0d12b06178797b825177583c33002d96.zip
[CodeGen] Enhance machine PHIs optimization
Summary: Make machine PHIs optimization to work for single value register taken from several different copies. This is the first step to fix PR38917. This change allows to get rid of redundant PHIs (see opt_phis2.mir test) to make the subsequent optimizations (like CSE) possible and simpler. For instance, before this patch the code like this: %b = COPY %z ... %a = PHI %bb1, %a; %bb2, %b could be optimized to: %a = %b but the code like this: %c = COPY %z ... %b = COPY %z ... %a = PHI %bb1, %a; %bb2, %b; %bb3, %c would remain unchanged. With this patch the latter case will be optimized: %a = %z```. Committed on behalf of: Anton Afanasyev anton.a.afanasyev@gmail.com Reviewers: RKSimon, MatzeB Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D54839 llvm-svn: 349271
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud