This website requires JavaScript.
Explore
Help
Register
Sign In
caio
/
clang-p2996
Watch
1
Star
0
Fork
0
You've already forked clang-p2996
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
4bbe6dc8a923089cdacd3363996fc00a64f96cfa
clang-p2996
/
llvm
/
lib
/
Transforms
/
Utils
/
SimplifyCFG.cpp
Nadav Rotem
53d32211b7
FoldBranchToCommonDest merges branches into a single branch with or/and of the condition. It has a heuristics for estimating when some of the dependencies are processed by out-of-order processors. This patch adds another rule to the heuristics that says that if the "BonusInstruction" that we speculatively execute is used by the condition of the second branch then it is okay to hoist it. This change exposes more opportunities for other passes to transform the code. It does not matter that much that we if-convert the code because the selectiondag builder splits or/and branches into multiple branches when profitable.
...
llvm-svn: 194524
2013-11-12 22:37:16 +00:00
159 KiB
Raw
Blame
History
View Raw
Reference in New Issue
View Git Blame
Copy Permalink