diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2017-01-07 03:23:47 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@dberlin.org> | 2017-01-07 03:23:47 +0000 |
commit | 0444343326cf442eee36165b12f4ebae4f3a0f90 (patch) | |
tree | edee4964afad302aee1578337842b2693ff33d3a | |
parent | 6d7d0bec105fdc0da092745984386a45b3ee3c90 (diff) | |
download | bcm5719-llvm-0444343326cf442eee36165b12f4ebae4f3a0f90.tar.gz bcm5719-llvm-0444343326cf442eee36165b12f4ebae4f3a0f90.zip |
NewGVN: Reformat and fix a few newlines
llvm-svn: 291334
-rw-r--r-- | llvm/lib/Transforms/Scalar/NewGVN.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp index c6099ea5051..0f782333a1a 100644 --- a/llvm/lib/Transforms/Scalar/NewGVN.cpp +++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp @@ -79,7 +79,8 @@ STATISTIC(NumGVNInstrDeleted, "Number of instructions deleted"); STATISTIC(NumGVNBlocksDeleted, "Number of blocks deleted"); STATISTIC(NumGVNOpsSimplified, "Number of Expressions simplified"); STATISTIC(NumGVNPhisAllSame, "Number of PHIs whos arguments are all the same"); -STATISTIC(NumGVNMaxIterations, "Maximum Number of iterations it took to converge GVN"); +STATISTIC(NumGVNMaxIterations, + "Maximum Number of iterations it took to converge GVN"); //===----------------------------------------------------------------------===// // GVN Pass @@ -1023,7 +1024,6 @@ void NewGVN::markMemoryUsersTouched(MemoryAccess *MA) { // Perform congruence finding on a given value numbering expression. void NewGVN::performCongruenceFinding(Value *V, const Expression *E) { - ValueToExpression[V] = E; // This is guaranteed to return something, since it will at least find // INITIAL. @@ -1881,6 +1881,7 @@ private: SmallVector<std::pair<int, int>, 8> DFSStack; }; } + bool NewGVN::eliminateInstructions(Function &F) { // This is a non-standard eliminator. The normal way to eliminate is // to walk the dominator tree in order, keeping track of available |