[X86] Add intrinsics for reading and writing to the flags register
[oota-llvm.git] / lib / Target / X86 / X86FrameLowering.cpp
index 242d0333ef9afa3d9ec955a0a05d349b183306fe..4e404aa854a5f7ff5d6d41f5b37b35b15a97db9d 100644 (file)
@@ -86,10 +86,6 @@ X86FrameLowering::needsFrameIndexResolution(const MachineFunction &MF) const {
 static bool usesTheStack(const MachineFunction &MF) {
   const MachineRegisterInfo &MRI = MF.getRegInfo();
 
-  // Conservativley assume that inline assembly might use the stack.
-  if (MF.hasInlineAsm())
-    return true;
-
   return any_of(MRI.reg_instructions(X86::EFLAGS),
                 [](const MachineInstr &RI) { return RI.isCopy(); });
 }