[PATCH] D76655: [InstSimplify][SVE] Minor fix SimplifyGEPInst for scalable vector.

Huihui Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 23 17:27:12 PDT 2020


huihuiz added a comment.

Take test.ll, run opt -S -instsimplify -o - 
Then you will get the compiler warning: Compiler has made implicit assumption that TypeSize is not scalable.

  define <vscale x 16 x i8*> @getelementptr_src_ty_not_vscale(<vscale x 16 x i8*> %a, <vscale x 16 x i64> %offset) {
    %v = getelementptr i8, <vscale x 16 x i8*> %a, <vscale x 16 x i64> %offset
    ret <vscale x 16 x i8*> %v
  }

For this case SrcTy is i8


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D76655/new/

https://reviews.llvm.org/D76655





More information about the llvm-commits mailing list