don't depend on the cfg being set up yet
llvm-svn: 20936
diff --git a/llvm/lib/Target/X86/X86ISelPattern.cpp b/llvm/lib/Target/X86/X86ISelPattern.cpp
index d989d3e..5d91fe4 100644
--- a/llvm/lib/Target/X86/X86ISelPattern.cpp
+++ b/llvm/lib/Target/X86/X86ISelPattern.cpp
@@ -444,7 +444,7 @@
// basic blocks. This will be a huge win, but we are waiting on the global
// allocators before we can do this.
//
- if (ContainsFPCode && BB->succ_size()) {
+ if (ContainsFPCode) {
BuildMI(*BB, BB->getFirstTerminator(), X86::FP_REG_KILL, 0);
++NumFPKill;
}