Skip to content

Commit 46080be

Browse files
committed
style: simplify getValName to use operator[] directly
1 parent 4678307 commit 46080be

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

csrc/fusion.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -670,9 +670,6 @@ class NVF_API Fusion : public PolymorphicBase {
670670
StmtNameType expr_name_counter_ = 0;
671671

672672
StmtNameType getValName(ValType vtype) {
673-
if (val_type_name_map_.find(vtype) == val_type_name_map_.end()) {
674-
val_type_name_map_[vtype] = 0;
675-
}
676673
return val_type_name_map_[vtype]++;
677674
}
678675

0 commit comments

Comments
 (0)