diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-13 05:04:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-13 05:04:27 +0000 |
commit | 178957028b84a84ac0fa850557b4812b2bb8878c (patch) | |
tree | 75d2776ed3525e03a448e3645deadc69d7003083 /llvm/lib/Transforms | |
parent | f0bf7cb739c5a4f06893dfe4289d38c2a052c8b2 (diff) | |
download | bcm5719-llvm-178957028b84a84ac0fa850557b4812b2bb8878c.tar.gz bcm5719-llvm-178957028b84a84ac0fa850557b4812b2bb8878c.zip |
Wrap code at 80 columns
llvm-svn: 9073
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LICM.cpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Scalar/LICM.cpp b/llvm/lib/Transforms/Scalar/LICM.cpp index 5275de4d591..0512bcb2f5a 100644 --- a/llvm/lib/Transforms/Scalar/LICM.cpp +++ b/llvm/lib/Transforms/Scalar/LICM.cpp @@ -38,12 +38,14 @@ #include <algorithm> namespace { - cl::opt<bool> DisablePromotion("disable-licm-promotion", cl::Hidden, - cl::desc("Disable memory promotion in LICM pass")); + cl::opt<bool> + DisablePromotion("disable-licm-promotion", cl::Hidden, + cl::desc("Disable memory promotion in LICM pass")); Statistic<> NumHoisted("licm", "Number of instructions hoisted out of loop"); Statistic<> NumHoistedLoads("licm", "Number of load insts hoisted"); - Statistic<> NumPromoted("licm", "Number of memory locations promoted to registers"); + Statistic<> NumPromoted("licm", + "Number of memory locations promoted to registers"); struct LICM : public FunctionPass, public InstVisitor<LICM> { virtual bool runOnFunction(Function &F); @@ -98,8 +100,9 @@ namespace { /// void hoist(Instruction &I); - /// SafeToHoist - Only hoist an instruction if it is not a trapping instruction - /// or if it is a trapping instruction and is guaranteed to execute + /// SafeToHoist - Only hoist an instruction if it is not a trapping + /// instruction or if it is a trapping instruction and is guaranteed to + /// execute. /// bool SafeToHoist(Instruction &I); @@ -140,7 +143,8 @@ namespace { /// friend class InstVisitor<LICM>; void visitBinaryOperator(Instruction &I) { - if (isLoopInvariant(I.getOperand(0)) && isLoopInvariant(I.getOperand(1)) && SafeToHoist(I)) + if (isLoopInvariant(I.getOperand(0)) && + isLoopInvariant(I.getOperand(1)) && SafeToHoist(I)) hoist(I); } void visitCastInst(CastInst &CI) { |