[llvm] r303543 - [LoopPredication] NFC. Move a nested struct declaration before the fields, clang-format a bit
Artur Pilipenko via llvm-commits
llvm-commits at lists.llvm.org
Mon May 22 05:01:33 PDT 2017
Author: apilipenko
Date: Mon May 22 07:01:32 2017
New Revision: 303543
URL: http://llvm.org/viewvc/llvm-project?rev=303543&view=rev
Log:
[LoopPredication] NFC. Move a nested struct declaration before the fields, clang-format a bit
This will simplify the diff for an upcoming review.
Modified:
llvm/trunk/lib/Transforms/Scalar/LoopPredication.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/LoopPredication.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopPredication.cpp?rev=303543&r1=303542&r2=303543&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/LoopPredication.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/LoopPredication.cpp Mon May 22 07:01:32 2017
@@ -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, <induction variable>, <loop invariant limit>
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<LoopICmp> parseLoopICmp(ICmpInst *ICI);
Value *expandCheck(SCEVExpander &Expander, IRBuilder<> &Builder,
More information about the llvm-commits
mailing list