diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-06-14 04:41:17 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-06-14 04:41:17 +0000 |
commit | 3a42565ccb169ec4acf79698b38d7da880f13364 (patch) | |
tree | d2c0dcabba0f4b72ba31808966872d9924d7d0c1 /lib/CodeGen/BranchFolding.h | |
parent | 3c2f0a11cce5a1e828e20675fa8467b624795e0a (diff) | |
download | llvm-3a42565ccb169ec4acf79698b38d7da880f13364.tar.gz llvm-3a42565ccb169ec4acf79698b38d7da880f13364.tar.bz2 llvm-3a42565ccb169ec4acf79698b38d7da880f13364.tar.xz |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132974 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/BranchFolding.h')
-rw-r--r-- | lib/CodeGen/BranchFolding.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/BranchFolding.h b/lib/CodeGen/BranchFolding.h index 4daf4ecfe5..4ed42c0346 100644 --- a/lib/CodeGen/BranchFolding.h +++ b/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; |