Don't do code sinking on unreachable blocks. It's unprofitable and hazardous.
authorDan Gohman <gohman@apple.com>
Mon, 5 Apr 2010 19:17:22 +0000 (19:17 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 5 Apr 2010 19:17:22 +0000 (19:17 +0000)
commitc4ae94dee8c9a07334de7ffd85c45893208cca77
tree735529519bec82748cb7af825994ff34a239f275
parent54ab2e9326993d9db0e393d3285a5c0a72af2c51
Don't do code sinking on unreachable blocks. It's unprofitable and hazardous.

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