[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:24:23 PDT 2020
huihuiz added a comment.
Current upstream crash at llvm/lib/IR/Constants.cpp:1674: static llvm::Constant *llvm::ConstantExpr::getCast(unsigned int, llvm::Constant *, llvm::Type *, bool): Assertion `CastInst::castIsValid(opc, C, Ty) && "Invalid constantexpr cast!"' failed.
take test.ll, run opt -S -instcombine test.ll
define <vscale x 2 x i8*> @gep_index_type_is_scalable(i8* %p) {
%gep = getelementptr i8, i8* %p, <vscale x 2 x i64> undef
ret <vscale x 2 x i8*> %gep
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78081/new/
https://reviews.llvm.org/D78081
More information about the llvm-commits
mailing list