[mlir] Use SetVector to deduplicate shape ops operands
authorEugene Zhulenev <ezhulenev@google.com>
Fri, 4 Feb 2022 18:20:12 +0000 (10:20 -0800)
committerEugene Zhulenev <ezhulenev@google.com>
Fri, 4 Feb 2022 19:34:13 +0000 (11:34 -0800)
commit2cff9ee46bffb5c62b97df51590c28cd4230c551
treebd86948e075571662ac4e91d4f3630a6b27c7608
parentb5ea288d13d099fc60f64932e8826d437e842348
[mlir] Use SetVector to deduplicate shape ops operands

Do not use quadratic complexity algorithm to find unique operands

Reviewed By: jpienaar

Differential Revision: https://reviews.llvm.org/D119021
mlir/lib/Dialect/Shape/IR/Shape.cpp