From 73576b57413cb4d1b1e448a97e6734790c7471cb Mon Sep 17 00:00:00 2001 From: Artur Pilipenko Date: Mon, 22 May 2017 12:01:32 +0000 Subject: [PATCH] [LoopPredication] NFC. Move a nested struct declaration before the fields, clang-format a bit This will simplify the diff for an upcoming review. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@303543 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/LoopPredication.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/lib/Transforms/Scalar/LoopPredication.cpp b/lib/Transforms/Scalar/LoopPredication.cpp index 9055bd95aa3..e538b7070b8 100644 --- a/lib/Transforms/Scalar/LoopPredication.cpp +++ b/lib/Transforms/Scalar/LoopPredication.cpp @@ -58,22 +58,24 @@ using namespace llvm; namespace { class LoopPredication { - ScalarEvolution *SE; - - Loop *L; - const DataLayout *DL; - BasicBlock *Preheader; - /// Represents an induction variable check: /// icmp Pred, , struct LoopICmp { ICmpInst::Predicate Pred; const SCEVAddRecExpr *IV; const SCEV *Limit; - LoopICmp(ICmpInst::Predicate Pred, const SCEVAddRecExpr *IV, const SCEV *Limit) + LoopICmp(ICmpInst::Predicate Pred, const SCEVAddRecExpr *IV, + const SCEV *Limit) : Pred(Pred), IV(IV), Limit(Limit) {} LoopICmp() {} }; + + ScalarEvolution *SE; + + Loop *L; + const DataLayout *DL; + BasicBlock *Preheader; + Optional parseLoopICmp(ICmpInst *ICI); Value *expandCheck(SCEVExpander &Expander, IRBuilder<> &Builder, -- 2.11.0