[IVDescriptors] Support FOR where we have multiple sink pointed
authorzhongyunde <zhongyunde@huawei.com>
Mon, 14 Feb 2022 01:27:49 +0000 (09:27 +0800)
committerguopeilin <guopeilin1@huawei.com>
Mon, 14 Feb 2022 01:30:35 +0000 (09:30 +0800)
commitb2f5164deb0e7bd27603022772dfba8814a389b1
tree8c27c185c8ef025e11c7e69f53c709eb6abbd115
parent273600b6e3e2b056a893bfee8092ecee9dde37ab
[IVDescriptors] Support FOR where we have multiple sink pointed

Handles the case where Previous doesn't come before LastPrev incorrectly.
Fix https://github.com/llvm/llvm-project/issues/53483

Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D118558
llvm/lib/Analysis/IVDescriptors.cpp
llvm/test/Transforms/LoopVectorize/first-order-recurrence-complex.ll