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 | a68fc7af63f744fb2e7407ff630044c3e9a418a5 (patch) | |
| tree | dea634a609b5938c7c6c05d359a2f37625bcdc02 /llvm/lib/Transforms/Utils | |
| parent | 9f276d6279dea92e7657555cb30a0a6f8d1bfa89 (diff) | |
| download | bcm5719-llvm-a68fc7af63f744fb2e7407ff630044c3e9a418a5.tar.gz bcm5719-llvm-a68fc7af63f744fb2e7407ff630044c3e9a418a5.zip | |
Use > instead of >=. We want to promote aggregates of 128-bytes.
llvm-svn: 65960
Diffstat (limited to 'llvm/lib/Transforms/Utils')
| -rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 25579614ecf..96cd299242d 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/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 |

