Skip to content

Commit b179be0

Browse files
Update lib/Dialect/HW/Transforms/HWVectorization.cpp
Co-authored-by: Hideto Ueno <uenoku.tokotoko@gmail.com>
1 parent 3faf348 commit b179be0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/Dialect/HW/Transforms/HWVectorization.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,10 +226,8 @@ class Vectorizer {
226226
/// Recursively traverses the defining operations of a value to build a
227227
/// set of all values in its transitive logic cone.
228228
void collectLogicCone(mlir::Value val, llvm::DenseSet<mlir::Value> &cone) {
229-
if (cone.count(val)) {
229+
if (!cone.count(val).second)
230230
return;
231-
}
232-
cone.insert(val);
233231

234232
Operation *definingOp = val.getDefiningOp();
235233
// Stop traversal at block arguments, constants, or when the source is gone.

0 commit comments

Comments
 (0)