aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorJohn Brawn <john.brawn@arm.com>2018-11-28 17:21:49 +0000
committerJohn Brawn <john.brawn@arm.com>2018-11-28 17:21:49 +0000
commit31c9769580ea40e6ccdd19c8daba269021c6f930 (patch)
treeba09172ebac10feea43ce0348d30bbd716077313 /clang/lib/CodeGen/CodeGenModule.cpp
parent7368fe42075629dc0f446eddfad3eee015297dbb (diff)
downloadllvm-31c9769580ea40e6ccdd19c8daba269021c6f930.zip
llvm-31c9769580ea40e6ccdd19c8daba269021c6f930.tar.gz
llvm-31c9769580ea40e6ccdd19c8daba269021c6f930.tar.bz2
[LICM] Reapply r347190 "Make LICM able to hoist phis" with fix
This commit caused failures because it failed to correctly handle cases where we hoist a phi, then hoist a use of that phi, then have to rehoist that use. We need to make sure that we rehoist the use to _after_ the hoisted phi, which we do by always rehoisting to the immediate dominator instead of just rehoisting everything to the original preheader. An option is also added to control whether control flow is hoisted, which is off in this commit but will be turned on in a subsequent commit. Differential Revision: https://reviews.llvm.org/D52827 llvm-svn: 347776
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions