Skip to content

Commit 578eafd

Browse files
committed
[region-isolation] Eliminate a temporary std::vector.
We can just pass in an ArrayRef here. I missed this inefficiency when I was going through the pass earlier.
1 parent fb7b4a3 commit 578eafd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/SILOptimizer/Utils/PartitionUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ class Partition {
322322
// so set to false to begin with
323323
Partition(bool canonical) : labels({}), canonical(canonical) {}
324324

325-
static Partition singleRegion(std::vector<Element> indices) {
325+
static Partition singleRegion(ArrayRef<Element> indices) {
326326
Partition p;
327327
if (!indices.empty()) {
328328
Region min_index =

0 commit comments

Comments
 (0)