diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2017-02-12 22:40:10 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@dberlin.org> | 2017-02-12 22:40:10 +0000 |
commit | 31e1b8fe482970e11cb61b432bd24b4840b7e373 (patch) | |
tree | 5ad7bf15cbead0254ef0cbaaa99d3027e474fe94 /llvm/lib/Transforms | |
parent | 86eab15f2ba19e4327e18aaacee833d099ecc5b8 (diff) | |
download | bcm5719-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.cpp | 2 |
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); } |