summaryrefslogtreecommitdiff
path: root/lib/Transforms/IPO
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2008-05-13 01:48:26 +0000
committerNate Begeman <natebegeman@mac.com>2008-05-13 01:48:26 +0000
commita72acf938902ea8ae2776cad7327257e88a63a54 (patch)
treed6722df62150fa62829cfcd279fc59a8b4c0ab84 /lib/Transforms/IPO
parentc9bdb006834a4ab0eae0e1b8742e87b0d64aac81 (diff)
downloadllvm-a72acf938902ea8ae2776cad7327257e88a63a54.tar.gz
llvm-a72acf938902ea8ae2776cad7327257e88a63a54.tar.bz2
llvm-a72acf938902ea8ae2776cad7327257e88a63a54.tar.xz
80 col / tabs fixes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51021 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO')
-rw-r--r--lib/Transforms/IPO/ArgumentPromotion.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Transforms/IPO/ArgumentPromotion.cpp b/lib/Transforms/IPO/ArgumentPromotion.cpp
index 264f080787..e874ec4ec6 100644
--- a/lib/Transforms/IPO/ArgumentPromotion.cpp
+++ b/lib/Transforms/IPO/ArgumentPromotion.cpp
@@ -66,7 +66,8 @@ namespace {
virtual bool runOnSCC(const std::vector<CallGraphNode *> &SCC);
static char ID; // Pass identification, replacement for typeid
- ArgPromotion(unsigned maxElements = 3) : CallGraphSCCPass((intptr_t)&ID), maxElements(maxElements) {}
+ ArgPromotion(unsigned maxElements = 3) : CallGraphSCCPass((intptr_t)&ID),
+ maxElements(maxElements) {}
private:
bool PromoteArguments(CallGraphNode *CGN);
@@ -74,8 +75,8 @@ namespace {
Function *DoPromotion(Function *F,
SmallPtrSet<Argument*, 8> &ArgsToPromote,
SmallPtrSet<Argument*, 8> &ByValArgsToTransform);
- /// The maximum number of elements to expand, or 0 for unlimited.
- unsigned maxElements;
+ /// The maximum number of elements to expand, or 0 for unlimited.
+ unsigned maxElements;
};
}
@@ -290,7 +291,7 @@ bool ArgPromotion::isSafeToPromoteArgument(Argument *Arg, bool isByVal) const {
<< Arg->getName() << "' because it would require adding more "
<< "than " << maxElements << " arguments to the function.\n";
// We limit aggregate promotion to only promoting up to a fixed number
- // of elements of the aggregate.
+ // of elements of the aggregate.
return false;
}
GEPIndices.push_back(Operands);