[LVI] Refactor to use newly introduced intersect utility
authorPhilip Reames <listmail@philipreames.com>
Tue, 2 Feb 2016 21:57:37 +0000 (21:57 +0000)
committerPhilip Reames <listmail@philipreames.com>
Tue, 2 Feb 2016 21:57:37 +0000 (21:57 +0000)
commitd1f829d374a2e5ebe2bfac29b0f7ebcc0ee8d85e
treea8e3881db3c55b9d56b0cc414d48fed1732655ed
parent246345a8348be591ca2503656bef416c5febfc79
[LVI] Refactor to use newly introduced intersect utility

This patch uses the newly introduced 'intersect' utility (from 259461: [LVI] Introduce an intersect operation on lattice values) to simplify existing code in LVI.

While not introducing any new concepts, this change is probably not NFC.  The common 'intersect' function is more powerful that the ad-hoc implementations we'd had in a couple of places.  Given that, we may see optimizations triggering a bit more often.

llvm-svn: 259583
llvm/lib/Analysis/LazyValueInfo.cpp