diff options
author | Tom Stellard <[email protected]> | 2012-05-24 13:42:23 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-05-24 14:12:30 -0400 |
commit | cc7a6d269170cc3668caa4f5af29228920e8d7a7 (patch) | |
tree | ad55dc567e3192ca2a5e049ef0ada86c45fa3eba /src/gallium/drivers/radeon/SIISelLowering.cpp | |
parent | 0f6a3a7de3b56a383061635016cdb10f0229bf02 (diff) |
radeon/llvm: Avoid error with SI in EmitInstrWithCustomInserter()
We need to return immediately after inserting instructions that require
S_WAITCNT so that the parent class' custom inserter won't try to insert
them again.
Diffstat (limited to 'src/gallium/drivers/radeon/SIISelLowering.cpp')
-rw-r--r-- | src/gallium/drivers/radeon/SIISelLowering.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/SIISelLowering.cpp b/src/gallium/drivers/radeon/SIISelLowering.cpp index e176defcf5d..4615db24266 100644 --- a/src/gallium/drivers/radeon/SIISelLowering.cpp +++ b/src/gallium/drivers/radeon/SIISelLowering.cpp @@ -39,6 +39,7 @@ MachineBasicBlock * SITargetLowering::EmitInstrWithCustomInserter( if (TII->get(MI->getOpcode()).TSFlags & SIInstrFlags::NEED_WAIT) { AppendS_WAITCNT(MI, *BB, llvm::next(I)); + return BB; } switch (MI->getOpcode()) { |