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
This commit is contained in:
Bill Wendling 2009-03-03 19:18:49 +00:00
parent 12f7cab423
commit 3aaf5d9933
3 changed files with 7 additions and 3 deletions

View File

@ -255,7 +255,7 @@ bool SROA::performScalarRepl(Function &F) {
uint64_t AllocaSize = TD->getTypePaddedSize(AI->getAllocatedType());
// Do not promote any struct whose size is too big.
if (AllocaSize >= SRThreshold) continue;
if (AllocaSize > SRThreshold) continue;
if ((isa<StructType>(AI->getAllocatedType()) ||
isa<ArrayType>(AI->getAllocatedType())) &&

View File

@ -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

View File

@ -1,4 +1,4 @@
; RUN: bugpoint %s -dce -bugpoint-deletecalls -simplifycfg -silence-passes
; RUN: bugpoint %s -dce -bugpoint-deletecalls -simplifycfg -silence-passes -gcc-tool-args -m32
@.LC0 = internal global [13 x i8] c"Hello World\0A\00" ; <[13 x i8]*> [#uses=1]