forked from OSchip/llvm-project
Revert accidental commit titled "testing"
This reverts commit r294919 llvm-svn: 294923
This commit is contained in:
parent
86eab15f2b
commit
31e1b8fe48
|
@ -571,7 +571,7 @@ const Expression *NewGVN::createExpression(Instruction *I) {
|
|||
// numbers. Since all commutative instructions have two operands it is more
|
||||
// efficient to sort by hand rather than using, say, std::sort.
|
||||
assert(I->getNumOperands() == 2 && "Unsupported commutative instruction!");
|
||||
if (shouldSwapOperands(E->getOperand(0), E->getOperand(1)))
|
||||
if (E->getOperand(0) > E->getOperand(1))
|
||||
E->swapOperands(0, 1);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue