diff options
| author | Bill Wendling <isanbard@gmail.com> | 2010-07-09 19:44:12 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2010-07-09 19:44:12 +0000 |
| commit | 32081510b8ac6bcf8d16793a8fee07e34833e999 (patch) | |
| tree | 4e26fa93380b2cf7dfa299d87d9284b4d61fe4e6 | |
| parent | c4e9a91c46956926696f7a3c93f29131ba3c3820 (diff) | |
| download | external_llvm-32081510b8ac6bcf8d16793a8fee07e34833e999.zip external_llvm-32081510b8ac6bcf8d16793a8fee07e34833e999.tar.gz external_llvm-32081510b8ac6bcf8d16793a8fee07e34833e999.tar.bz2 | |
Clarify what mysterious check means.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108005 91177308-0d34-0410-b5e6-96231b3b80d8
| -rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 5eb1a00..43ef9a1 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); |
