[PATCH] D32059: Make AssumptionCache's interface return a range of Values

Yoav Ben-Shalom via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 13 15:39:16 PDT 2017


yabash created this revision.
Herald added a subscriber: mzolotukhin.

Instead of returning a range of WeakVHs,
forcing every user of the interface to check the WeakVH before using it,
return a range which filters out the null WeakVHs and dereferences it.

This is a fix for a FIXME by @djasper.


https://reviews.llvm.org/D32059

Files:
  include/llvm/Analysis/AssumptionCache.h
  lib/Analysis/AssumptionCache.cpp
  lib/Analysis/CodeMetrics.cpp
  lib/Analysis/LazyValueInfo.cpp
  lib/Analysis/ScalarEvolution.cpp
  lib/Analysis/ValueTracking.cpp
  lib/Transforms/InstCombine/InstCombineSelect.cpp
  lib/Transforms/Scalar/AlignmentFromAssumptions.cpp
  lib/Transforms/Utils/PredicateInfo.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32059.95227.patch
Type: text/x-patch
Size: 9295 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170413/cff5b467/attachment.bin>


More information about the llvm-commits mailing list