[PATCH] D25963: [LoopUnroll] Implement profile-based loop peeling

Dean Michael Berris via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 14 17:43:53 PST 2016


dberris added inline comments.


================
Comment at: lib/Transforms/Utils/LoopUnrollPeel.cpp:211-214
+  for (ValueToValueMapTy::iterator VI = VMap.begin(), VE = VMap.end(); VI != VE;
+       ++VI) {
+    LVMap[VI->first] = VI->second;
+  }
----------------
You might also be able to turn this into a range-based for loop:

```
for (const auto& KV : VMap)
  LVMap[KV.first] = KV.second;
```


https://reviews.llvm.org/D25963





More information about the llvm-commits mailing list