llvm.org GIT mirror llvm / 3aaf5d9
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 Bill Wendling 10 years ago
3 changed file(s) with 7 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
254254 uint64_t AllocaSize = TD->getTypePaddedSize(AI->getAllocatedType());
255255
256256 // Do not promote any struct whose size is too big.
257 if (AllocaSize >= SRThreshold) continue;
257 if (AllocaSize > SRThreshold) continue;
258258
259259 if ((isa(AI->getAllocatedType()) ||
260260 isa(AI->getAllocatedType())) &&
3131 using namespace llvm;
3232
3333 STATISTIC(NumSpeculations, "Number of speculative executed instructions");
34
35 #include "llvm/Support/CommandLine.h"
36 static cl::opt
37 DisableXForm("disable-xform", cl::Hidden, cl::init(false));
3438
3539 /// SafeToMergeTerminators - Return true if it is safe to merge these two
3640 /// terminator instructions together.
17811785 }
17821786
17831787 // If we found some, do the transformation!
1784 if (!UncondBranchPreds.empty()) {
1788 if (!UncondBranchPreds.empty() && !DisableXForm) {
17851789 while (!UncondBranchPreds.empty()) {
17861790 BasicBlock *Pred = UncondBranchPreds.back();
17871791 DOUT << "FOLDING: " << *BB
None ; RUN: bugpoint %s -dce -bugpoint-deletecalls -simplifycfg -silence-passes
0 ; RUN: bugpoint %s -dce -bugpoint-deletecalls -simplifycfg -silence-passes -gcc-tool-args -m32
11
22 @.LC0 = internal global [13 x i8] c"Hello World\0A\00" ; <[13 x i8]*> [#uses=1]
33