Don't require LiveVariables for PHIElimination. Enable critical edge splitting
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 18 Nov 2009 18:01:35 +0000 (18:01 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Wed, 18 Nov 2009 18:01:35 +0000 (18:01 +0000)
commit0257dd375d64da978887d0c1e97ab3560d7597ce
tree19d1be11a760d8c589c7b7498ad3c65d2c4d5f62
parente1caa98c5bfecbd0ac0920c09b7a1b4b1e9184a5
Don't require LiveVariables for PHIElimination. Enable critical edge splitting
when LiveVariables is available.

The -split-phi-edges is now gone, and so is the hack to disable it when using
the local register allocator. The PHIElimination pass no longer has
LiveVariables as a prerequisite - that is what broke the local allocator.
Instead we do critical edge splitting when possible - that is when
LiveVariables is available.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89213 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/PHIElimination.cpp
lib/CodeGen/PHIElimination.h