[LSR] Silence static analyzer null dereference warnings with assertions. NFCI.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 22 Sep 2019 17:59:24 +0000 (17:59 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Sun, 22 Sep 2019 17:59:24 +0000 (17:59 +0000)
commit2441455bc83c6f0f214ff2ad963deb1f484c9dc0
treeb0fa8ed3ae3cfc73ee250b52f5d381d800c50a04
parentdb05a482bc52dd48685760c8413d6a1f0ec7ab89
[LSR] Silence static analyzer null dereference warnings with assertions. NFCI.

Add assertions to make it clear that GenerateIVChain / NarrowSearchSpaceByPickingWinnerRegs should succeed in finding non-null values

llvm-svn: 372518
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp