summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/BranchFolding.h
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-06-14 04:41:17 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-06-14 04:41:17 +0000
commitda24f2f8e175e3561e9a523fa5dd70a448a6b369 (patch)
treef5b4caa4b0671daf409352ac7a4fa518245a69ba /llvm/lib/CodeGen/BranchFolding.h
parentee781d586e895e6b0642bffe4e6a15697dc393a1 (diff)
downloadbcm5719-llvm-da24f2f8e175e3561e9a523fa5dd70a448a6b369.tar.gz
bcm5719-llvm-da24f2f8e175e3561e9a523fa5dd70a448a6b369.zip
Make the threshold used by branch folding softer. Before we would get a
sharp all or nothing transition when one extra predecessor was added. Now we still test first ones for merging. llvm-svn: 132974
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.h')
-rw-r--r--llvm/lib/CodeGen/BranchFolding.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.h b/llvm/lib/CodeGen/BranchFolding.h
index 4daf4ecfe59..4ed42c03464 100644
--- a/llvm/lib/CodeGen/BranchFolding.h
+++ b/llvm/lib/CodeGen/BranchFolding.h
@@ -10,6 +10,7 @@
#ifndef LLVM_CODEGEN_BRANCHFOLDING_HPP
#define LLVM_CODEGEN_BRANCHFOLDING_HPP
+#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/CodeGen/MachineBasicBlock.h"
#include <vector>
@@ -47,6 +48,7 @@ namespace llvm {
};
typedef std::vector<MergePotentialsElt>::iterator MPIterator;
std::vector<MergePotentialsElt> MergePotentials;
+ SmallPtrSet<const MachineBasicBlock*, 2> TriedMerging;
class SameTailElt {
MPIterator MPIter;
OpenPOWER on IntegriCloud