PHI nodes not in the loop header aren't part of the loop iteration initial
authorNick Lewycky <nicholas@mxc.ca>
Mon, 24 Oct 2011 05:51:01 +0000 (05:51 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 24 Oct 2011 05:51:01 +0000 (05:51 +0000)
commit5bef0eb1de5f52662de7b4808bee5e9d643b04db
tree8744209eb4d22df0fdeb50f706d27db22b80b78c
parent4a3935c27e5315081844a5b7ae1f7097efc234b0
PHI nodes not in the loop header aren't part of the loop iteration initial
state. Furthermore, they might not have two operands. This fixes the underlying
issue behind the crashes introduced in r142781.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142788 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp