Teach PHIElimination to split critical edges when -split-phi-edges is enabled.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 10 Nov 2009 22:01:05 +0000 (22:01 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 10 Nov 2009 22:01:05 +0000 (22:01 +0000)
commitf235f13931835b3335f3f2ff2d3060381b93626c
tree3388d35b748a3c11118e4f20203141a6c76599e3
parente35e3c33dc5533dd1e8ab7d9f4039cc1429d56aa
Teach PHIElimination to split critical edges when -split-phi-edges is enabled.

Critical edges leading to a PHI node are split when the PHI source variable is
live out from the predecessor block. This help the coalescer eliminate more
PHI joins.

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