Eliminate more unnecessary calls to .iter().

This commit is contained in:
Dan Gohman
2017-08-31 16:51:06 -07:00
parent de02976162
commit 566c772e20
4 changed files with 7 additions and 7 deletions

View File

@@ -433,7 +433,7 @@ impl Liveness {
assert!(self.ebb_args.is_empty());
for ebb in func.layout.ebbs() {
for &arg in func.dfg.ebb_args(ebb).iter() {
for &arg in func.dfg.ebb_args(ebb) {
let affinity = self.ranges.get(arg).unwrap().affinity;
if affinity.is_none() {
continue;