Bug 876607 - Fix accidental switching of lhs/rhs in the code, rs=luke

This commit is contained in:
Hannes Verschore 2013-06-08 00:34:16 +02:00
Родитель fc6205c596
Коммит 0d52a584cb
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -863,7 +863,7 @@ ReorderCommutative(MDefinition **lhsp, MDefinition **rhsp)
return; return;
if (lhs->isConstant() || if (lhs->isConstant() ||
(lhs->defUseCount() == 1 && rhs->defUseCount() != 1)) (rhs->defUseCount() == 1 && lhs->defUseCount() > 1))
{ {
*rhsp = lhs; *rhsp = lhs;
*lhsp = rhs; *lhsp = rhs;