aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-06-10 16:17:19 +0200
committerNikita Popov <npopov@redhat.com>2022-06-13 10:48:09 +0200
commit92a9b1c9184cbb382257ca8bf3e079ab8f20b038 (patch)
treecea1381344b5920c442681f336b23496d7387cb5 /clang/lib/Frontend/CreateInvocationFromCommandLine.cpp
parent2a3288776c940669fed430c3984b91e61ab0f015 (diff)
downloadllvm-92a9b1c9184cbb382257ca8bf3e079ab8f20b038.zip
llvm-92a9b1c9184cbb382257ca8bf3e079ab8f20b038.tar.gz
llvm-92a9b1c9184cbb382257ca8bf3e079ab8f20b038.tar.bz2
[InstCombine] Don't push operation across loop phi
When pushing an operation across a phi node, we should avoid doing so across a loop backedge. This is generally non-profitable, because it does not reduce the number of times the operation is executed, and could lead to an infinite combine loop. The code was already guarding against this, but using an insufficiently strong condition, which did not cover the case where the operation was originally outside the loop (in which case the transform moves the operation from outside the loop into the loop, which is particularly undesirable). Differential Revision: https://reviews.llvm.org/D127499
Diffstat (limited to 'clang/lib/Frontend/CreateInvocationFromCommandLine.cpp')
0 files changed, 0 insertions, 0 deletions