fix PR8642: if a critical edge has a PHI value that can trap,
authorChris Lattner <sabre@nondot.org>
Sun, 19 Dec 2010 04:58:57 +0000 (04:58 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 19 Dec 2010 04:58:57 +0000 (04:58 +0000)
commit96ba57fddac5999ef6d4009d8baef24607da6221
tree217c86c23170b5974b6c13ed934a1f317f3f4200
parent43afe75ad02a6b8d3d57fbdf9e23a42a880cfa35
fix PR8642: if a critical edge has a PHI value that can trap,
isel is *required* to split the edge.  PHI values get evaluated
on the edge, not in their predecessor block.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@122170 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
test/CodeGen/X86/critical-edge-split-2.ll [new file with mode: 0644]