diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-11-10 06:33:54 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-11-10 06:33:54 +0000 |
commit | 0ae390abce6a12f3f334366769fb4fae9b142e5d (patch) | |
tree | 689a7498587731c4529a0c1662579349fa7f64e9 /llvm/lib/Analysis/ScalarEvolution.cpp | |
parent | 116df1328cbd9124aa84260fb3dfc60208618f41 (diff) | |
download | bcm5719-llvm-0ae390abce6a12f3f334366769fb4fae9b142e5d.tar.gz bcm5719-llvm-0ae390abce6a12f3f334366769fb4fae9b142e5d.zip |
[SCEV] Eta reduce some lambdas; NFC
llvm-svn: 286429
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index c9330114817..cb647d0677c 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -3370,8 +3370,7 @@ bool ScalarEvolution::containsAddRecurrence(const SCEV *S) { if (I != HasRecMap.end()) return I->second; - bool FoundAddRec = - SCEVExprContains(S, [](const SCEV *S) { return isa<SCEVAddRecExpr>(S); }); + bool FoundAddRec = SCEVExprContains(S, isa<SCEVAddRecExpr, const SCEV *>); HasRecMap.insert({S, FoundAddRec}); return FoundAddRec; } @@ -9153,7 +9152,7 @@ static bool findArrayDimensionsRec(ScalarEvolution &SE, // Returns true when one of the SCEVs of Terms contains a SCEVUnknown parameter. static inline bool containsParameters(SmallVectorImpl<const SCEV *> &Terms) { for (const SCEV *T : Terms) - if (SCEVExprContains(T, [](const SCEV *S) { return isa<SCEVUnknown>(S); })) + if (SCEVExprContains(T, isa<SCEVUnknown, const SCEV *>)) return true; return false; } |