[PATCH] D71389: [ConstantFold][SVE] Fix constant folding for bitcast.
Huihui Zhang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 11 21:14:16 PST 2019
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.
run: opt -S -constprop bitcast.ll -o -
bitcast.ll
define <vscale x 4 x float> @bitcast_scalable_constant() {
%i1 = insertelement <vscale x 4 x i32> undef, i32 1, i32 0
%i2 = shufflevector <vscale x 4 x i32> %i1, <vscale x 4 x i32> undef, <vscale x 4 x i32> zeroinitializer
%i3 = bitcast <vscale x 4 x i32> %i2 to <vscale x 4 x float>
ret <vscale x 4 x float> %i3
}
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71389/new/
https://reviews.llvm.org/D71389
More information about the llvm-commits
mailing list