summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2017-02-12 22:40:10 +0000
committerDaniel Berlin <dberlin@dberlin.org>2017-02-12 22:40:10 +0000
commit31e1b8fe482970e11cb61b432bd24b4840b7e373 (patch)
tree5ad7bf15cbead0254ef0cbaaa99d3027e474fe94 /llvm/lib/Transforms
parent86eab15f2ba19e4327e18aaacee833d099ecc5b8 (diff)
downloadbcm5719-llvm-31e1b8fe482970e11cb61b432bd24b4840b7e373.tar.gz
bcm5719-llvm-31e1b8fe482970e11cb61b432bd24b4840b7e373.zip
Revert accidental commit titled "testing"
This reverts commit r294919 llvm-svn: 294923
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Scalar/NewGVN.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp
index 25455c75b4e..99203368664 100644
--- a/llvm/lib/Transforms/Scalar/NewGVN.cpp
+++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp
@@ -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);
}
OpenPOWER on IntegriCloud