This situation can occur:
authorBill Wendling <isanbard@gmail.com>
Mon, 23 Jun 2008 23:41:14 +0000 (23:41 +0000)
committerBill Wendling <isanbard@gmail.com>
Mon, 23 Jun 2008 23:41:14 +0000 (23:41 +0000)
commitebcba612b537f45a033ccd9a60bee0c45e2e2ded
tree00ea1623ef1d89a871a3d627a8387500a34e2c1c
parentaabdded3b4e8b87e586c6fed7d0f1d6906eb3351
This situation can occur:

    ,------.
    |      |
    |      v
    |   t2 = phi ... t1 ...
    |      |
    |      v
    |   t1 = ...
    |  ... = ... t1 ...
    |      |
    `------'

where there is a use in a PHI node that's a predecessor to the defining
block. We don't want to mark all predecessors as having the value "alive" in
this case. Also, the assert was too restrictive and didn't handle this case.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52655 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/LiveVariables.cpp
test/CodeGen/PowerPC/2008-06-23-LiveVariablesCrash.ll [new file with mode: 0644]