[DA] Refactor with a better API
authorCongzhe Cao <congzhe.cao@huawei.com>
Wed, 13 Apr 2022 18:45:48 +0000 (14:45 -0400)
committerCongzheUalberta <congzhecao@gmail.com>
Wed, 13 Apr 2022 18:51:48 +0000 (14:51 -0400)
commit557b131c885b0225d24b027dec3162e0ba051068
tree562dbfe37376759c92e0f61100a88f55fca4afc6
parent04641b212191e3cea73904d37c5a59b0f87f3247
[DA] Refactor with a better API

Refactor from iteratively using BitCastInst::getOperand()
to using stripPointerCasts() instead. This is an improvement
since now we are able to analyze more cases, please refer
to test cases added in this patch.

Reviewed By: Meinersbur, #loopoptwg

Differential Revision: https://reviews.llvm.org/D123559
llvm/lib/Analysis/DependenceAnalysis.cpp
llvm/test/Analysis/DependenceAnalysis/SimpleSIVNoValidityCheckFixedSize.ll