summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-07-04 00:09:54 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-07-04 00:09:54 +0000
commitf8a63a1507cfc20dbb74dc38ccbdc64460d9f547 (patch)
treee8ecaca58f59dfbdffc6d88317cfc823bf96470f /llvm/lib/CodeGen/CodeGen.cpp
parent8be1ecd61558d22d8d17a5c0b1a8e45170bf7789 (diff)
downloadbcm5719-llvm-f8a63a1507cfc20dbb74dc38ccbdc64460d9f547.tar.gz
bcm5719-llvm-f8a63a1507cfc20dbb74dc38ccbdc64460d9f547.zip
Add an experimental early if-conversion pass, off by default.
This pass performs if-conversion on SSA form machine code by speculatively executing both sides of the branch and using a cmov instruction to select the result. This can help lower the number of branch mispredictions on architectures like x86 that don't have predicable instructions. The current implementation is very aggressive, and causes regressions on mosts tests. It needs good heuristics that have yet to be implemented. llvm-svn: 159694
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
-rw-r--r--llvm/lib/CodeGen/CodeGen.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/CodeGen.cpp b/llvm/lib/CodeGen/CodeGen.cpp
index 7b015d850d3..fb2c2e83f1b 100644
--- a/llvm/lib/CodeGen/CodeGen.cpp
+++ b/llvm/lib/CodeGen/CodeGen.cpp
@@ -23,6 +23,7 @@ void llvm::initializeCodeGen(PassRegistry &Registry) {
initializeCalculateSpillWeightsPass(Registry);
initializeCodePlacementOptPass(Registry);
initializeDeadMachineInstructionElimPass(Registry);
+ initializeEarlyIfConverterPass(Registry);
initializeExpandPostRAPass(Registry);
initializeExpandISelPseudosPass(Registry);
initializeFinalizeMachineBundlesPass(Registry);
OpenPOWER on IntegriCloud