summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2017-02-24 06:38:24 +0000
committerCraig Topper <craig.topper@gmail.com>2017-02-24 06:38:24 +0000
commitc446b1ffae601c3287ef3cd324b95a1ede1dd49e (patch)
tree4e2cc8d6a660374977a76d22a035523a1eb09357 /llvm/lib/CodeGen
parentc43f3f3291d4d5cc505808adc4855efddcccaf8f (diff)
downloadbcm5719-llvm-c446b1ffae601c3287ef3cd324b95a1ede1dd49e.tar.gz
bcm5719-llvm-c446b1ffae601c3287ef3cd324b95a1ede1dd49e.zip
[ExecutionDepsFix] Use range-based for loop. NFC
llvm-svn: 296093
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/ExecutionDepsFix.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/ExecutionDepsFix.cpp b/llvm/lib/CodeGen/ExecutionDepsFix.cpp
index 2da791ca783..4a310f70769 100644
--- a/llvm/lib/CodeGen/ExecutionDepsFix.cpp
+++ b/llvm/lib/CodeGen/ExecutionDepsFix.cpp
@@ -722,8 +722,7 @@ void ExeDepsFix::visitSoftInstr(MachineInstr *mi, unsigned mask) {
// Kill off any remaining uses that don't match available, and build a list of
// incoming DomainValues that we want to merge.
SmallVector<LiveReg, 4> Regs;
- for (SmallVectorImpl<int>::iterator i=used.begin(), e=used.end(); i!=e; ++i) {
- int rx = *i;
+ for (int rx : used) {
assert(LiveRegs && "no space allocated for live registers");
const LiveReg &LR = LiveRegs[rx];
// This useless DomainValue could have been missed above.
OpenPOWER on IntegriCloud