From 07a0700418ced82f58426155fbc59cc69877775a Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Fri, 9 Jul 2010 19:44:12 +0000 Subject: [PATCH] Clarify what mysterious check means. llvm-svn: 108005 --- lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 5eb1a003bc6..43ef9a1cacf 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -300,6 +300,9 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) { for (MachineBasicBlock::const_iterator II = MBB->begin(), IE = MBB->end(); II != IE; ++II) { const TargetInstrDesc &TID = TM.getInstrInfo()->get(II->getOpcode()); + + // Operand 1 of an inline asm instruction indicates whether the asm + // needs stack or not. if ((II->isInlineAsm() && II->getOperand(1).getImm()) || (TID.isCall() && !TID.isReturn())) { MFI->setHasCalls(true);