Use alphanumerical order instead of idstring idx in opt_clean compare_signals()
authorClifford Wolf <clifford@clifford.at>
Tue, 2 Feb 2016 08:16:18 +0000 (09:16 +0100)
committerClifford Wolf <clifford@clifford.at>
Tue, 2 Feb 2016 08:16:18 +0000 (09:16 +0100)
passes/opt/opt_clean.cc

index 49615d9d6a8dc1208f707ab5c40294f965e3e8e6..175e8e1120dfb62f9d536f58f3828d285ace185e 100644 (file)
@@ -177,7 +177,7 @@ bool compare_signals(RTLIL::SigBit &s1, RTLIL::SigBit &s2, SigPool &regs, SigPoo
        if (attrs1 != attrs2)
                return attrs2 > attrs1;
 
-       return w2->name < w1->name;
+       return strcmp(w2->name.c_str(), w1->name.c_str()) < 0;
 }
 
 bool check_public_name(RTLIL::IdString id)