aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/Archive.cpp
diff options
context:
space:
mode:
authorBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2018-05-08 06:59:47 +0000
committerBjorn Pettersson <bjorn.a.pettersson@ericsson.com>2018-05-08 06:59:47 +0000
commit51cebc98f3d8f6b7d9a9bb8ec419a3ba82aa9d4c (patch)
tree79abafb0c11203eb83a5071d12c043ec6fda533c /llvm/lib/Object/Archive.cpp
parentb0f310d51dd9002004b933e411b136471ac61c0a (diff)
downloadllvm-51cebc98f3d8f6b7d9a9bb8ec419a3ba82aa9d4c.zip
llvm-51cebc98f3d8f6b7d9a9bb8ec419a3ba82aa9d4c.tar.gz
llvm-51cebc98f3d8f6b7d9a9bb8ec419a3ba82aa9d4c.tar.bz2
[LCSSA] Do not remove used PHI nodes in formLCSSAForInstructions
Summary: In formLCSSAForInstructions we speculatively add new PHI nodes, that sometimes ends up without having any uses. It has been discovered that sometimes an added PHI node can appear as being unused in one iteration of the Worklist, although it can end up being used by a PHI node added in a later iteration. We now check, a second time, that the PHI node still is unused before we remove it. This avoids an assert about "Trying to remove a phi with uses." for the added test case. Reviewers: davide, mzolotukhin, mattd, dberlin Reviewed By: mzolotukhin, dberlin Subscribers: dberlin, mzolotukhin, davide, bjope, uabelho, llvm-commits Differential Revision: https://reviews.llvm.org/D46422 llvm-svn: 331741
Diffstat (limited to 'llvm/lib/Object/Archive.cpp')
0 files changed, 0 insertions, 0 deletions