We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
; RUN: opt -S -instsimplify < %s define i8 @test() { %r = call i8 @llvm.vector.reduce.mul.v16i8(<16 x i8> bitcast (<1 x i128> <i128 20011376718272490338853433276725592320> to <16 x i8>)) ret i8 %r }
declare i8 @llvm.vector.reduce.mul.v16i8(<16 x i8>)
opt: /home/nikic/llvm-project/llvm/include/llvm/Support/Casting.h:104: static bool llvm::isa_impl_cl<To, const From*>::doit(const From*) [with To = llvm::PoisonValue; From = llvm::Constant]: Assertion `Val && "isa<> used on a null pointer"' failed. [...] #9 0x0000564c89438b9d llvm::Constant::containsPoisonElement() const (build/bin/opt+0x28bfb9d) #10 0x0000564c88b69eaa (anonymous namespace)::ConstantFoldScalarCall1(llvm::StringRef, unsigned int, llvm::Type*, llvm::ArrayRefllvm::Constant*, llvm::TargetLibraryInfo const*, llvm::CallBase const*) ConstantFolding.cpp:0:0
containsPoisonElement() does not account for the possibility of constant expressions, in which case getAggregateElement() may return null.
The text was updated successfully, but these errors were encountered:
Fixed by af382b9.
Sorry, something went wrong.
Merged: 1ff9aa2
No branches or pull requests
Extended Description
; RUN: opt -S -instsimplify < %s
define i8 @test() {
%r = call i8 @llvm.vector.reduce.mul.v16i8(<16 x i8> bitcast (<1 x i128> <i128 20011376718272490338853433276725592320> to <16 x i8>))
ret i8 %r
}
declare i8 @llvm.vector.reduce.mul.v16i8(<16 x i8>)
opt: /home/nikic/llvm-project/llvm/include/llvm/Support/Casting.h:104: static bool llvm::isa_impl_cl<To, const From*>::doit(const From*) [with To = llvm::PoisonValue; From = llvm::Constant]: Assertion `Val && "isa<> used on a null pointer"' failed.
[...]
#9 0x0000564c89438b9d llvm::Constant::containsPoisonElement() const (build/bin/opt+0x28bfb9d)
#10 0x0000564c88b69eaa (anonymous namespace)::ConstantFoldScalarCall1(llvm::StringRef, unsigned int, llvm::Type*, llvm::ArrayRefllvm::Constant*, llvm::TargetLibraryInfo const*, llvm::CallBase const*) ConstantFolding.cpp:0:0
containsPoisonElement() does not account for the possibility of constant expressions, in which case getAggregateElement() may return null.
The text was updated successfully, but these errors were encountered: