[PATCH] D39743: [ValueLattice] Use PointerIntPair (WIP).

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 7 10:07:02 PST 2017


fhahn created this revision.

This is a first version of a patch that tries to reduce the memory
consumption of value lattices by using a pointer to ConstantRange, mentioned
in PR26921.

This is still work in progress and I am not entirely happy with passing
the ConstantRange pool around everywhere. But maybe someone has some
thoughts already.

Also the plan is to use reference counting to remove ConstantRanges
from the pool as they become unused. That's not implemented yet.


https://reviews.llvm.org/D39743

Files:
  include/llvm/ADT/APInt.h
  include/llvm/Analysis/ValueLattice.h
  include/llvm/IR/ConstantRange.h
  lib/Analysis/LazyValueInfo.cpp
  lib/Analysis/ValueLattice.cpp
  lib/IR/LLVMContextImpl.h
  lib/Transforms/Scalar/SCCP.cpp
  unittests/Analysis/ValueLatticeTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39743.121926.patch
Type: text/x-patch
Size: 39620 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171107/7d372ce2/attachment.bin>


More information about the llvm-commits mailing list