diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2016-04-07 14:47:07 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2016-04-07 14:47:07 +0000 |
commit | d37630e461cb6e1db4fdf221f6ff978c8d7b0bc1 (patch) | |
tree | 88352d149f66e64c7c229206510848aecd535f4b /llvm/lib/Target/AMDGPU/SIInsertWaits.cpp | |
parent | 5ae71243c2b5389117534f6167646a17dfaeeda5 (diff) | |
download | bcm5719-llvm-d37630e461cb6e1db4fdf221f6ff978c8d7b0bc1.tar.gz bcm5719-llvm-d37630e461cb6e1db4fdf221f6ff978c8d7b0bc1.zip |
AMDGPU/SI: Add MachineBasicBlock parameter to SIInstrInfo::insertWaitStates
Summary: This makes it possible to insert nops at the end of blocks.
Reviewers: arsenm
Subscribers: arsenm, llvm-commits
Differential Revision: http://reviews.llvm.org/D18549
llvm-svn: 265678
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIInsertWaits.cpp')
-rw-r--r-- | llvm/lib/Target/AMDGPU/SIInsertWaits.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaits.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaits.cpp index 7df43eeb17e..f250782de58 100644 --- a/llvm/lib/Target/AMDGPU/SIInsertWaits.cpp +++ b/llvm/lib/Target/AMDGPU/SIInsertWaits.cpp @@ -519,7 +519,7 @@ void SIInsertWaits::insertDPPWaitStates(MachineBasicBlock::iterator DPP, continue; if (DPP->readsRegister(Op.getReg(), TRI)) { - TII->insertWaitStates(DPP, WaitStates); + TII->insertWaitStates(*DPP->getParent(), DPP, WaitStates); return; } } |