summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2019-07-03 00:30:44 +0000
committerMatt Arsenault <Matthew.Arsenault@amd.com>2019-07-03 00:30:44 +0000
commitc04aab9c0646461bc187808920b3d5ee7f5cc5ab (patch)
tree1d89c50a49e38fecb4358acc957554ae55deb021 /llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
parent2082bf28ebea76cc187b508f801122866420d9ff (diff)
downloadbcm5719-llvm-c04aab9c0646461bc187808920b3d5ee7f5cc5ab.tar.gz
bcm5719-llvm-c04aab9c0646461bc187808920b3d5ee7f5cc5ab.zip
AMDGPU: Look through bundles for existing waitcnts
These aren't produced now, but will be in a future patch. llvm-svn: 364983
Diffstat (limited to 'llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp')
-rw-r--r--llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
index 8256caffb48..efc80652631 100644
--- a/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
@@ -1357,7 +1357,8 @@ bool SIInsertWaitcnts::insertWaitcntInBlock(MachineFunction &MF,
// Walk over the instructions.
MachineInstr *OldWaitcntInstr = nullptr;
- for (MachineBasicBlock::iterator Iter = Block.begin(), E = Block.end();
+ for (MachineBasicBlock::instr_iterator Iter = Block.instr_begin(),
+ E = Block.instr_end();
Iter != E;) {
MachineInstr &Inst = *Iter;
OpenPOWER on IntegriCloud