From 4a650af59912110a246c0a041bff38c92f0e56a2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 13 Oct 2003 05:04:27 +0000 Subject: [PATCH] Wrap code at 80 columns git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9073 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/LICM.cpp | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/Transforms/Scalar/LICM.cpp b/lib/Transforms/Scalar/LICM.cpp index 5275de4d591..0512bcb2f5a 100644 --- a/lib/Transforms/Scalar/LICM.cpp +++ b/lib/Transforms/Scalar/LICM.cpp @@ -38,12 +38,14 @@ #include namespace { - cl::opt DisablePromotion("disable-licm-promotion", cl::Hidden, - cl::desc("Disable memory promotion in LICM pass")); + cl::opt + 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 { 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; 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) { -- 2.34.1