summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2010-07-09 19:44:12 +0000
committerBill Wendling <isanbard@gmail.com>2010-07-09 19:44:12 +0000
commitf831d86311dde9a7c5e52520bedbc5bed2cd5782 (patch)
tree0603aa47914218de4a2e03b71f718d533f98f128 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parent0b73ccfe20166a2ef0843d9e49892dc2300e9f44 (diff)
downloadbcm5719-llvm-f831d86311dde9a7c5e52520bedbc5bed2cd5782.tar.gz
bcm5719-llvm-f831d86311dde9a7c5e52520bedbc5bed2cd5782.zip
Clarify what mysterious check means.
llvm-svn: 108005
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 5eb1a003bc6..43ef9a1cacf 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud