don't depend on the cfg being set up yet
authorChris Lattner <sabre@nondot.org>
Wed, 30 Mar 2005 01:10:00 +0000 (01:10 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 30 Mar 2005 01:10:00 +0000 (01:10 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20936 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelPattern.cpp

index d989d3e86287caf3b22c65c36e221029c2784493..5d91fe41b48a801b71e7f86be3cdf303ddec30d2 100644 (file)
@@ -444,7 +444,7 @@ void ISel::InstructionSelectBasicBlock(SelectionDAG &DAG) {
   // 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;
   }