Bug 609129 - TM: fix emitIf(), re-enable implicit guard optimization (NJ-specific part). r=dvander.

--HG--
extra : convert_revision : f348fd5b02118c7151d991f51d76abe69976952e
This commit is contained in:
Nicholas Nethercote 2010-11-03 15:04:51 -07:00
parent 0be07ddc2a
commit d09fc9b6b7

View File

@ -2574,9 +2574,7 @@ namespace nanojit
ins = out->ins2(op, a, b);
addNL(LIns2, ins, k);
} else if (ins->isCmp()) {
// XXX: temporarily disabled because it exposed latent problems
// that caused bug 607856. See also bug 609129.
if (0 && knownCmpValues.containsKey(ins)) {
if (knownCmpValues.containsKey(ins)) {
// We've seen this comparison before, and it was previously
// used in a guard, so we know what its value must be at this
// point. Replace it with a constant.