Make CodePlacementOpt detect special EH control flow by
authorDan Gohman <gohman@apple.com>
Thu, 18 Feb 2010 21:25:53 +0000 (21:25 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 18 Feb 2010 21:25:53 +0000 (21:25 +0000)
commit49d7f8d341a7b4137c674ce0f08f5b18e8195f4a
tree267e9a0cd03db18189b5212e93b787b5df0c04a4
parent0ce7b1255c86dcfdfdd4dfad9ea625de12657944
Make CodePlacementOpt detect special EH control flow by
checking whether AnalyzeBranch disagrees with the CFG
directly, rather than looking for EH_LABEL instructions.
EH_LABEL instructions aren't always at the end of the
block, due to FP_REG_KILL and other things. This fixes
an infinite loop compiling MultiSource/Benchmarks/Bullet.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96611 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodePlacementOpt.cpp
test/CodeGen/X86/code_placement_eh.ll [new file with mode: 0644]