We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3faf348 commit b179be0Copy full SHA for b179be0
lib/Dialect/HW/Transforms/HWVectorization.cpp
@@ -226,10 +226,8 @@ class Vectorizer {
226
/// Recursively traverses the defining operations of a value to build a
227
/// set of all values in its transitive logic cone.
228
void collectLogicCone(mlir::Value val, llvm::DenseSet<mlir::Value> &cone) {
229
- if (cone.count(val)) {
+ if (!cone.count(val).second)
230
return;
231
- }
232
- cone.insert(val);
233
234
Operation *definingOp = val.getDefiningOp();
235
// Stop traversal at block arguments, constants, or when the source is gone.
0 commit comments