mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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.
This commit is contained in:
@@ -322,7 +322,7 @@ public:
|
||||
// so set to false to begin with
|
||||
Partition(bool canonical) : labels({}), canonical(canonical) {}
|
||||
|
||||
static Partition singleRegion(std::vector<Element> indices) {
|
||||
static Partition singleRegion(ArrayRef<Element> indices) {
|
||||
Partition p;
|
||||
if (!indices.empty()) {
|
||||
Region min_index =
|
||||
|
||||
Reference in New Issue
Block a user