Similar to issue D71445. Scalable vector should not be evaluated element by element.
Add support to handle scalable vector UndefValue.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
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 -