diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-03-03 19:18:49 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-03-03 19:18:49 +0000 |
commit | 3aaf5d993365c803dad9a8815b6c9864505af5b6 (patch) | |
tree | fc94f927b768f0fb8f4f7c345c8a496238957174 /lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | 12f7cab423728180717ac94f612a561ba4fea77b (diff) |
Use > instead of >=. We want to promote aggregates of 128-bytes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65960 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r-- | lib/Transforms/Utils/SimplifyCFG.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/SimplifyCFG.cpp b/lib/Transforms/Utils/SimplifyCFG.cpp index 25579614ec..96cd299242 100644 --- a/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/lib/Transforms/Utils/SimplifyCFG.cpp @@ -33,6 +33,10 @@ using namespace llvm; STATISTIC(NumSpeculations, "Number of speculative executed instructions"); +#include "llvm/Support/CommandLine.h" +static cl::opt<bool> +DisableXForm("disable-xform", cl::Hidden, cl::init(false)); + /// SafeToMergeTerminators - Return true if it is safe to merge these two /// terminator instructions together. /// @@ -1782,7 +1786,7 @@ bool llvm::SimplifyCFG(BasicBlock *BB) { } // If we found some, do the transformation! - if (!UncondBranchPreds.empty()) { + if (!UncondBranchPreds.empty() && !DisableXForm) { while (!UncondBranchPreds.empty()) { BasicBlock *Pred = UncondBranchPreds.back(); DOUT << "FOLDING: " << *BB |