Clarify what mysterious check means.
authorBill Wendling <isanbard@gmail.com>
Fri, 9 Jul 2010 19:44:12 +0000 (19:44 +0000)
committerBill Wendling <isanbard@gmail.com>
Fri, 9 Jul 2010 19:44:12 +0000 (19:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108005 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp

index 5eb1a003bc6594f3686fdd4a7653879583455e4c..43ef9a1cacf05c5b2cdfe53243dd47dc0724218c 100644 (file)
@@ -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);