[LVI] Fix a bug with a guard being the very first instruction in a BB not taken into...
authorArtur Pilipenko <apilipenko@azulsystems.com>
Fri, 21 Oct 2016 15:02:21 +0000 (15:02 +0000)
committerArtur Pilipenko <apilipenko@azulsystems.com>
Fri, 21 Oct 2016 15:02:21 +0000 (15:02 +0000)
commit47dc098c0665931bbd885c40b2f596697b1b54c9
treeab3652947f49ab63dc4f57374ba2345c67b9e996
parent501be9b3d7eff577e2eef89f330e5f4ff01fe9d7
[LVI] Fix a bug with a guard being the very first instruction in a BB not taken into account

While looking for guards use reverse iterator and scan up to rend() not to begin()

llvm-svn: 284827
llvm/lib/Analysis/LazyValueInfo.cpp
llvm/test/Transforms/CorrelatedValuePropagation/guards.ll