[PATCH] D78081: [InstCombine][SVE] Fix visitGetElementPtrInst for scalable type.
Huihui Zhang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 13 22:14:57 PDT 2020
huihuiz created this revision.
huihuiz added reviewers: sdesmalen, efriedma, spatel, ctetreau.
huihuiz added a project: LLVM.
Herald added subscribers: psnobl, rkruppe, hiraditya, tschuett.
This patch fix the following issues in InstCombiner::visitGetElementPtrInst
1. Skip for scalable type if transformation requires fixed size number of vector element.
2. Skip for scalable type if transformation relies on compile-time known type alloc size.
3. Use VectorType::getElementCount when scalable property is used to construct new VectorType.
4. Explicitly call TypeSize::getFixedSize to avoid implicit type conversion to uint64_t.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D78081
Files:
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/test/Transforms/InstCombine/vscale_gep.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D78081.257198.patch
Type: text/x-patch
Size: 8205 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200414/c0c086fb/attachment.bin>
More information about the llvm-commits
mailing list