Skip to content

Commit

Permalink
JIT: jump threading (#46257)
Browse files Browse the repository at this point in the history
Optimize branches where a branch outcome is fully determined by a dominating
branch, and both true and false values can reach the dominated branch.
  • Loading branch information
AndyAyersMS authored Jan 13, 2021
1 parent 3b5e19c commit a568dcc
Show file tree
Hide file tree
Showing 2 changed files with 459 additions and 32 deletions.
2 changes: 2 additions & 0 deletions src/coreclr/jit/compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -6868,6 +6868,8 @@ class Compiler
//
PhaseStatus optRedundantBranches();
bool optRedundantBranch(BasicBlock* const block);
bool optJumpThread(BasicBlock* const block, BasicBlock* const domBlock);
bool optReachable(BasicBlock* const fromBlock, BasicBlock* const toBlock);

#if ASSERTION_PROP
/**************************************************************************
Expand Down
Loading

0 comments on commit a568dcc

Please sign in to comment.