when checking if we should move a split edge block outside of a loop,
authorChris Lattner <sabre@nondot.org>
Mon, 3 Oct 2005 00:31:52 +0000 (00:31 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 3 Oct 2005 00:31:52 +0000 (00:31 +0000)
commit37edbf0b21959e176672ae51f8b7e86ba1ef727d
tree6d20f739e746e1f5ba4376ee2d782e37d9519498
parent9390368970d14361a2ab8c2886e10cc51e42fd1a
when checking if we should move a split edge block outside of a loop,
check the presplit pred, not the post-split pred.  This was causing us
to make the wrong decision in some cases, leaving the critical edge block
in the loop.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23601 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp