Removing a variable that is set but never used, to silence a -Wunused-but-set-variabl...
authorAaron Ballman <aaron@aaronballman.com>
Sat, 27 Dec 2014 19:01:19 +0000 (19:01 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Sat, 27 Dec 2014 19:01:19 +0000 (19:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224888 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index f057d0fa2d4a6a3c0f937d3b1275d05976c65503..2c62cbc9b06aa4232806123c862231cc58cc8b50 100644 (file)
@@ -2550,14 +2550,10 @@ X86TargetLowering::LowerFormalArguments(SDValue Chain,
   }
 
   // Figure out if XMM registers are in use.
-  bool HaveXMMArgs = Is64Bit && !IsWin64;
   bool NoImplicitFloatOps = Fn->getAttributes().hasAttribute(
       AttributeSet::FunctionIndex, Attribute::NoImplicitFloat);
   assert(!(MF.getTarget().Options.UseSoftFloat && NoImplicitFloatOps) &&
          "SSE register cannot be used when SSE is disabled!");
-  if (MF.getTarget().Options.UseSoftFloat || NoImplicitFloatOps ||
-      !Subtarget->hasSSE1())
-    HaveXMMArgs = false;
 
   // 64-bit calling conventions support varargs and register parameters, so we
   // have to do extra work to spill them in the prologue.