[PATCH] D70985: [InstCombine][SVE] Skip scalable vectors in ConstantFoldInsertElementInstruction.

Huihui Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 3 14:46:30 PST 2019


huihuiz added a comment.

current upstream crash with "void llvm::Value::doRAUW(llvm::Value *, llvm::Value::ReplaceMetadataUses): Assertion `New->getType() == getType() && "replaceAllUses of value with new value of different type!"' failed."

opt -S -instcombine test.ll

test.ll

  define <vscale x 4 x i32> @f(i32 %val) {
    %i = insertelement <vscale x 4 x i32> undef, i32 1, i32 0
    ret <vscale x 4 x i32> %i
  }


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D70985





More information about the llvm-commits mailing list