Ledger Nano X - The secure hardware wallet
SHARE
TWEET

Untitled

a guest Apr 7th, 2020 137 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/DAG/inter_profile.cpp b/DAG/inter_profile.cpp
  2. index dd7e69a..6412d8c 100644
  3. --- a/DAG/inter_profile.cpp
  4. +++ b/DAG/inter_profile.cpp
  5. @@ -149,7 +149,7 @@ static void create_controller(Function *F,
  6.      // cmp = Builder.CreateAnd(cmp, calls[i]);
  7.    }
  8.  
  9. -  auto *br = Builder.CreateCondBr(cmp, C->getLoopPreheader(), L->getLoopPreheader());
  10. +  auto *br = Builder.CreateCondBr(cmp, L->getLoopPreheader(), L->getLoopPreheader());
  11.    // add_dump_msg(C->getLoopPreheader(), "going to clone\n");
  12.    // add_dump_msg(C->getLoopPreheader(), F->getName());
  13.    // add_dump_msg(L->getLoopPreheader(), "going to original loop\n");
  14. diff --git a/DAG/intra_profile.h b/DAG/intra_profile.h
  15. index 065b0ea..9dcc142 100644
  16. --- a/DAG/intra_profile.h
  17. +++ b/DAG/intra_profile.h
  18. @@ -217,7 +217,7 @@ void create_BBControl(Function *F,
  19.    // if c2 > gap then we change switch_control to jump to BBOpt, otherwise,
  20.    // jump to BB
  21.    Value *gap_cmp = Builder.CreateICmpSGE(c2, gap, "gap.cmp");
  22. -  Value *new_target = Builder.CreateSelect(gap_cmp, BBOpt_target_value, BB_target_value);
  23. +  Value *new_target = Builder.CreateSelect(gap_cmp, BB_target_value, BB_target_value);
  24.  
  25.    // decide if it is time to change the switch jump
  26.    Value *iter_cmp = Builder.CreateICmpEQ(c1, n_iter, "iter.cmp");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top