diff options
-rw-r--r-- | lib/Target/X86/X86ISelDAGToDAG.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Target/X86/X86ISelDAGToDAG.cpp b/lib/Target/X86/X86ISelDAGToDAG.cpp index daa7f135f8..50c8f5b870 100644 --- a/lib/Target/X86/X86ISelDAGToDAG.cpp +++ b/lib/Target/X86/X86ISelDAGToDAG.cpp @@ -642,11 +642,8 @@ void X86DAGToDAGISel::PreprocessForFPConvert() { /// when it has created a SelectionDAG for us to codegen. void X86DAGToDAGISel::InstructionSelect() { CurBB = BB; // BB can change as result of isel. - if (!OptForSize) { - const Function *F = CurDAG->getMachineFunction().getFunction(); - OptForSize = !F->isDeclaration() && - F->hasFnAttr(Attribute::OptimizeForSize); - } + const Function *F = CurDAG->getMachineFunction().getFunction(); + OptForSize = F->hasFnAttr(Attribute::OptimizeForSize); DEBUG(BB->dump()); if (!Fast) |