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())) &&
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.
///
}
// If we found some, do the transformation!
- if (!UncondBranchPreds.empty()) {
+ if (!UncondBranchPreds.empty() && !DisableXForm) {
while (!UncondBranchPreds.empty()) {
BasicBlock *Pred = UncondBranchPreds.back();
DOUT << "FOLDING: " << *BB
-; 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]