From: Florian Hahn Date: Sat, 13 Nov 2021 09:39:14 +0000 (+0000) Subject: [SCEV] Update SCEVLoopGuardRewriter to hold reference to map. (NFC) X-Git-Tag: upstream/15.0.7~25816 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8ed8d370880b5c4e7bbf52b50791710a9f4f834b;p=platform%2Fupstream%2Fllvm.git [SCEV] Update SCEVLoopGuardRewriter to hold reference to map. (NFC) SCEVLoopGuardRewriter doesn't need to copy the rewrite map. It can just hold a const reference instead, to avoid an unnecessary copy. --- diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index d7effde..5bdbe40 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -13696,7 +13696,7 @@ ScalarEvolution::computeSymbolicMaxBackedgeTakenCount(const Loop *L) { /// /// At the moment only rewriting SCEVUnknown is supported. class SCEVLoopGuardRewriter : public SCEVRewriteVisitor { - DenseMap Map; + const DenseMap ⤅ public: SCEVLoopGuardRewriter(ScalarEvolution &SE,