aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorEli Friedman <efriedma@quicinc.com>2019-07-03 23:12:39 +0000
committerEli Friedman <efriedma@quicinc.com>2019-07-03 23:12:39 +0000
commit41ee3977c45a056011ffbdc2a7d31f59c18a7ae1 (patch)
treee29748500e5d53447b62236518e20f8b68dcaf69 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parent43cbca50e42808f382ac1b0d5f4193bc52ce1fa2 (diff)
downloadllvm-41ee3977c45a056011ffbdc2a7d31f59c18a7ae1.zip
llvm-41ee3977c45a056011ffbdc2a7d31f59c18a7ae1.tar.gz
llvm-41ee3977c45a056011ffbdc2a7d31f59c18a7ae1.tar.bz2
[JumpThreading] Fix threading with unusual PHI nodes.
If the block being cloned contains a PHI node, in general, we need to clone that PHI node, even though it's trivial. If the operand of the PHI is an instruction in the block being cloned, the correct value for the operand doesn't exist until SSAUpdater constructs it. We usually don't hit this issue because we try to avoid threading across loop headers, but it's possible to hit this in some cases involving irreducible CFGs. I added a flag to allow threading across loop headers to make the testcase easier to understand. Thanks to Brian Rzycki for reducing the testcase. Fixes https://bugs.llvm.org/show_bug.cgi?id=42085. Differential Revision: https://reviews.llvm.org/D63913 llvm-svn: 365094
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions