diff options
| author | Duncan Sands <baldrick@free.fr> | 2012-05-26 07:47:48 +0000 | 
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2012-05-26 07:47:48 +0000 | 
| commit | c94ac6fdf67e2867ebe44c75cdfc1d14bab08e78 (patch) | |
| tree | 11c67f6e6a6ccf267e69a435c7bb9173bdb97024 /llvm/lib | |
| parent | 1bb8edb8acc00e1221ee3b8d6d9065eed05712b1 (diff) | |
| download | bcm5719-llvm-c94ac6fdf67e2867ebe44c75cdfc1d14bab08e78.tar.gz bcm5719-llvm-c94ac6fdf67e2867ebe44c75cdfc1d14bab08e78.zip  | |
Move this debug statement earlier so it is easy to see the order in
which operands come flying out of the linearization stage.
llvm-svn: 157512
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/Reassociate.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Scalar/Reassociate.cpp b/llvm/lib/Transforms/Scalar/Reassociate.cpp index 91a16c0d63e..7a9a41c950a 100644 --- a/llvm/lib/Transforms/Scalar/Reassociate.cpp +++ b/llvm/lib/Transforms/Scalar/Reassociate.cpp @@ -1446,6 +1446,8 @@ Value *Reassociate::ReassociateExpression(BinaryOperator *I) {    SmallVector<ValueEntry, 8> Ops;    LinearizeExprTree(I, Ops); +  DEBUG(dbgs() << "RAIn:\t"; PrintOps(I, Ops); dbgs() << '\n'); +    // Now that we have linearized the tree to a list and have gathered all of    // the operands and their ranks, sort the operands by their rank.  Use a    // stable_sort so that values with equal ranks will have their relative @@ -1454,8 +1456,6 @@ Value *Reassociate::ReassociateExpression(BinaryOperator *I) {    // the vector.    std::stable_sort(Ops.begin(), Ops.end()); -  DEBUG(dbgs() << "RAIn:\t"; PrintOps(I, Ops); dbgs() << '\n'); -    // OptimizeExpression - Now that we have the expression tree in a convenient    // sorted form, optimize it globally if possible.    if (Value *V = OptimizeExpression(I, Ops)) {  | 

