bugpoint: avoid infinite loop between -connections and -wires.
authorCatherine <whitequark@whitequark.org>
Wed, 15 Dec 2021 08:15:54 +0000 (08:15 +0000)
committerCatherine <whitequark@whitequark.org>
Wed, 15 Dec 2021 08:17:02 +0000 (08:17 +0000)
Fixes #3113.

passes/cmds/bugpoint.cc

index 16ac5b6a7efd2bffd26d58fdcdd44982e5e179ff..7b621504df8d5b9f87ad53c9def36678a1dc5241 100644 (file)
@@ -377,7 +377,7 @@ struct BugpointPass : public Pass {
                                        if (wire->get_bool_attribute(ID::bugpoint_keep))
                                                continue;
 
-                                       if (wire->name.begins_with("$delete_wire"))
+                                       if (wire->name.begins_with("$delete_wire") || wire->name.begins_with("$auto$bugpoint"))
                                                continue;
 
                                        if (index++ == seed)