[PATCH] D73678: [ConstantFold][SVE] Fix constant folding for scalable vector unary operations.

Huihui Zhang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 29 17:54:26 PST 2020


huihuiz added a comment.

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

take this test.ll

  define <vscale x 2 x double> @fneg(<vscale x 2 x double> %val) {
    %r = fneg <vscale x 2 x double> undef
    ret <vscale x 2 x double> %r
  }

run: opt -S -constprop test.ll -o -


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D73678





More information about the llvm-commits mailing list