[llvm] r294923 - Revert accidental commit titled "testing"
Daniel Berlin via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 12 14:40:10 PST 2017
Author: dannyb
Date: Sun Feb 12 16:40:10 2017
New Revision: 294923
URL: http://llvm.org/viewvc/llvm-project?rev=294923&view=rev
Log:
Revert accidental commit titled "testing"
This reverts commit r294919
Modified:
llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp?rev=294923&r1=294922&r2=294923&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/NewGVN.cpp Sun Feb 12 16:40:10 2017
@@ -571,7 +571,7 @@ const Expression *NewGVN::createExpressi
// 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);
}
More information about the llvm-commits
mailing list