[PPL-devel] [GIT] ppl/ppl(master): Dead store avoided.

Roberto Bagnara roberto.bagnara at bugseng.com
Thu Feb 26 10:24:07 CET 2015


Module: ppl/ppl
Branch: master
Commit: 3a74d1ca32658e925d6d94d264e868b4b8295610
URL:    http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=3a74d1ca32658e925d6d94d264e868b4b8295610

Author: Roberto Bagnara <roberto.bagnara at bugseng.com>
Date:   Thu Feb 26 10:23:53 2015 +0100

Dead store avoided.

---

 src/PIP_Tree.cc |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/PIP_Tree.cc b/src/PIP_Tree.cc
index 8206b7d..014a5a4 100644
--- a/src/PIP_Tree.cc
+++ b/src/PIP_Tree.cc
@@ -744,7 +744,9 @@ compatibility_check_find_pivot_in_set(
 
         if (lhs_sign != rhs_sign) {
           if (lhs_sign > rhs_sign) {
+#ifndef NDEBUG
             pj = challenger_j;
+#endif
             cost = challenger_cost;
             value = challenger_value;
             row_value = row_challenger_value;
@@ -772,7 +774,9 @@ compatibility_check_find_pivot_in_set(
           }
           else {
             if (lhs > rhs) {
+#ifndef NDEBUG
               pj = challenger_j;
+#endif
               cost = challenger_cost;
               value = challenger_value;
               row_value = row_challenger_value;




More information about the PPL-devel mailing list