diff options
author | Mikael Holmen <mikael.holmen@ericsson.com> | 2019-03-15 13:51:05 +0000 |
---|---|---|
committer | Mikael Holmen <mikael.holmen@ericsson.com> | 2019-03-15 13:51:05 +0000 |
commit | 339daae806b208cad060ce93f63e40f24a311812 (patch) | |
tree | 88913fda7bbcd695c853f0ee7d27d80bb74613bf /llvm/lib/IR/ModuleSummaryIndex.cpp | |
parent | f82d4ed771a0d85da4d3c779e58a9be9ded3968f (diff) | |
download | llvm-339daae806b208cad060ce93f63e40f24a311812.zip llvm-339daae806b208cad060ce93f63e40f24a311812.tar.gz llvm-339daae806b208cad060ce93f63e40f24a311812.tar.bz2 |
[CodeGenPrepare] avoid crashing from replacing a phi twice
Summary:
This is a fix to bug 41052:
https://bugs.llvm.org/show_bug.cgi?id=41052
While trying to optimize a memory instruction in a dead basic block, we end up registering the same phi for replacement twice. This patch avoids registering more than the first replacement candidate for a phi.
Patch by: JesperAntonsson
Reviewers: skatkov, aprantl
Reviewed By: aprantl
Subscribers: jdoerfert, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D59358
llvm-svn: 356260
Diffstat (limited to 'llvm/lib/IR/ModuleSummaryIndex.cpp')
0 files changed, 0 insertions, 0 deletions