From c488dfabac2702a45bac689318fa40d7426c73b0 Mon Sep 17 00:00:00 2001 From: Artur Pilipenko Date: Mon, 22 May 2017 12:01:32 +0000 Subject: [LoopPredication] NFC. Move a nested struct declaration before the fields, clang-format a bit This will simplify the diff for an upcoming review. llvm-svn: 303543 --- llvm/lib/Transforms/Scalar/LoopPredication.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'llvm/lib/Transforms') diff --git a/llvm/lib/Transforms/Scalar/LoopPredication.cpp b/llvm/lib/Transforms/Scalar/LoopPredication.cpp index 9055bd95aa3..e538b7070b8 100644 --- a/llvm/lib/Transforms/Scalar/LoopPredication.cpp +++ b/llvm/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, -- cgit v1.2.3