[Hexagon] Adding indexed stores.
[oota-llvm.git] / lib / Target / X86 / X86MCInstLower.cpp
index b853110fac332a3eca0f2610bba7277bfc94f8e1..a8330f4dd750c128dbd86700c063bca36902af82 100644 (file)
@@ -390,9 +390,8 @@ static void SimplifyShortMoveForm(X86AsmPrinter &Printer, MCInst &Inst,
   Inst.addOperand(Seg);
 }
 
-static unsigned getRetOpcode(const X86Subtarget &Subtarget)
-{
-       return Subtarget.is64Bit() ? X86::RETQ : X86::RETL;
+static unsigned getRetOpcode(const X86Subtarget &Subtarget) {
+  return Subtarget.is64Bit() ? X86::RETQ : X86::RETL;
 }
 
 void X86MCInstLower::Lower(const MachineInstr *MI, MCInst &OutMI) const {
@@ -815,15 +814,6 @@ static void LowerSTATEPOINT(MCStreamer &OS, StackMaps &SM,
                             X86MCInstLower &MCInstLowering) {
   assert(Is64Bit && "Statepoint currently only supports X86-64");
 
-  // We need to record the frame size for stack walking
-  const MachineFunction *MF = MI.getParent()->getParent();
-  assert(MF && "can't find machine function?");
-  (void)MF;
-
-  //
-  // Emit call instruction
-  //
-
   // Lower call target and choose correct opcode
   const MachineOperand &call_target = StatepointOpers(&MI).getCallTarget();
   MCOperand call_target_mcop;
@@ -865,7 +855,7 @@ static void LowerSTATEPOINT(MCStreamer &OS, StackMaps &SM,
 
   // Record our statepoint node in the same section used by STACKMAP
   // and PATCHPOINT
-  SM.recordStatepoint(MI);  
+  SM.recordStatepoint(MI);
 }
 
 
@@ -1093,7 +1083,8 @@ void X86AsmPrinter::EmitInstruction(const MachineInstr *MI) {
   }
   case TargetOpcode::STATEPOINT:
     return LowerSTATEPOINT(OutStreamer, SM, *MI, Subtarget->is64Bit(), TM,
-      getSubtargetInfo(), MCInstLowering);
+                           getSubtargetInfo(), MCInstLowering);
+
   case TargetOpcode::STACKMAP:
     return LowerSTACKMAP(*MI);