Revert accidental commit titled "testing"

This reverts commit r294919

llvm-svn: 294923
This commit is contained in:
Daniel Berlin 2017-02-12 22:40:10 +00:00
parent 86eab15f2b
commit 31e1b8fe48
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}