diff options
author | Max Kazantsev <max.kazantsev@azul.com> | 2017-12-06 08:58:16 +0000 |
---|---|---|
committer | Max Kazantsev <max.kazantsev@azul.com> | 2017-12-06 08:58:16 +0000 |
commit | 1c66ae630395dd2b7f11f8a7836f087d0c2691fc (patch) | |
tree | 280c73a75bb26a362d2eaeefd16dc114e0ce8dc6 /llvm/lib/CodeGen/MachineOperand.cpp | |
parent | ba7afd7043cf9a28e9222cf236f98cb58e13bbf2 (diff) | |
download | llvm-1c66ae630395dd2b7f11f8a7836f087d0c2691fc.zip llvm-1c66ae630395dd2b7f11f8a7836f087d0c2691fc.tar.gz llvm-1c66ae630395dd2b7f11f8a7836f087d0c2691fc.tar.bz2 |
[SCEV][NFC] Share value cache between SCEVs in GroupByComplexity
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 share it between SCEVs.
Reviewed By: sanjoy
Differential Revision: https://reviews.llvm.org/D40597
llvm-svn: 319880
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
0 files changed, 0 insertions, 0 deletions