Fix x86 fast-isel's cmp+branch folding to avoid folding when the
authorDan Gohman <gohman@apple.com>
Sat, 21 Aug 2010 02:32:36 +0000 (02:32 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 21 Aug 2010 02:32:36 +0000 (02:32 +0000)
commit8bef744518e5904b77ad903d6f05241f9f807a97
tree0b8394a57b205bb71c9c283b151a2faf660f13ed
parentbf8154a4395bf941f57f6453503a850cb9805a64
Fix x86 fast-isel's cmp+branch folding to avoid folding when the
comparison is in a different basic block from the branch. In such
cases, the comparison's operands may not have initialized virtual
registers available.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111709 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86FastISel.cpp
test/CodeGen/X86/fast-isel-cmp-branch.ll [new file with mode: 0644]