[InstSimplify][SVE] Fix SimplifyGEPInst for scalable vector.
authorHuihui Zhang <huihuiz@quicinc.com>
Mon, 16 Mar 2020 18:45:45 +0000 (11:45 -0700)
committerHuihui Zhang <huihuiz@quicinc.com>
Mon, 16 Mar 2020 18:46:12 +0000 (11:46 -0700)
commit0616e9964b9ef2e2cb12790515610e7cdd0042e3
tree1c8f10b3661bdef52e295442cca3f6a919701c62
parentb0bdb186f506d7fa2686f1c09bb8926b6adeb91d
[InstSimplify][SVE] Fix SimplifyGEPInst for scalable vector.

Summary:
Skip folds that rely on DataLayout::getTypeAllocSize(). For scalable
vector, only minimal type alloc size is known at compile-time.

Reviewers: sdesmalen, efriedma, spatel, apazos

Reviewed By: efriedma

Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D75892
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/test/Transforms/InstSimplify/vscale.ll