[PATCH] D40597: [SCEV][NFC] Share value cache between SCEVs in GroupByComplexity

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 29 04:13:49 PST 2017


mkazantsev created this revision.

Current implementation of `compareSCEVComplexity` is being unreasonable with `SCEVUnknown`s:
every time it sees one, it creates a new value cache and tries to prove equality of two values using it.
This cache reallocates and gets lost from SCEV to SCEV.

This patch changes this behavior: now we create one cache for all values and shares it between SCEVs.


https://reviews.llvm.org/D40597

Files:
  lib/Analysis/ScalarEvolution.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40597.124716.patch
Type: text/x-patch
Size: 5823 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171129/e3b9d909/attachment.bin>


More information about the llvm-commits mailing list