OSDN Git Service

Minor compilation speed improvement.
authorEvan Cheng <evan.cheng@apple.com>
Fri, 9 Jun 2006 06:24:42 +0000 (06:24 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 9 Jun 2006 06:24:42 +0000 (06:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28736 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 6f20b9c..3236991 100644 (file)
@@ -3413,8 +3413,8 @@ X86TargetLowering::LowerFORMAL_ARGUMENTS(SDOperand Op, SelectionDAG &DAG) {
   MachineFunction &MF = DAG.getMachineFunction();
   const Function* Fn = MF.getFunction();
   if (Fn->hasExternalLinkage() &&
-      Fn->getName() == "main" &&
-      Subtarget->TargetType == X86Subtarget::isCygwin)
+      Subtarget->TargetType == X86Subtarget::isCygwin &&
+      Fn->getName() == "main")
     MF.getInfo<X86FunctionInfo>()->setForceFramePointer(true);
 
   unsigned CC = cast<ConstantSDNode>(Op.getOperand(1))->getValue();