[PATCH] D78267: [InstCombine][SVE] Fix visitExtractElementInst for scalable type.

Huihui Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 15 21:17:27 PDT 2020


huihuiz added a comment.

Current upstream crash at llvm/include/llvm/ADT/APInt.h:1437: void llvm::APInt::setBit(unsigned int): Assertion `BitPosition < BitWidth && "BitPosition out of range"' failed.

take test.ll, run: opt -S -instcombine test.ll

  define i32 @extractelement_maybe_out_of_range(<vscale x 4 x i32> %a) {
    %r = extractelement <vscale x 4 x i32> %a, i64 4
    ret i32 %r
  }


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D78267





More information about the llvm-commits mailing list