[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:
Michael Gottesman
2023-10-06 13:15:15 -07:00
parent fb7b4a3a32
commit 578eafdb46

View File

@@ -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 =