mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
Clarify what mysterious check means.
llvm-svn: 108005
This commit is contained in:
parent
e7a09d478d
commit
07a0700418
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user