-
Notifications
You must be signed in to change notification settings - Fork 12.1k
New issue
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
[RISC-V] Assertion `(TLI.getTypeAction(*DAG.getContext(), Op.getValueType()) == TargetLowering::TypeLegal || Op.getOpcode() == ISD::TargetConstant || Op.getOpcode() == ISD::Register) && "Unexpected illegal type!"' failed. #117349
Comments
@llvm/issue-subscribers-bug Author: Harald van Dijk (hvdijk)
Please consider this automatically reduced (courtesy of `llvm-reduce`) `tmp.ll`:
```llvm
; ModuleID = 'tmp.bc'
target datalayout = "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128"
target triple = "riscv64-unknown-linux-gnu"
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) define spir_kernel void @_ZTS6kernelILi4330275EE() #1 { ; Function Attrs: alwaysinline attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
clang: /home/harald/llvm-project/main/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:969: void {anonymous}::SelectionDAGLegalize::LegalizeOp(llvm::SDNode*): Assertion `(TLI.getTypeAction(*DAG.getContext(), Op.getValueType()) == TargetLowering::TypeLegal || Op.getOpcode() == ISD::TargetConstant || Op.getOpcode() == ISD::Register) && "Unexpected illegal type!"' failed.
|
@llvm/issue-subscribers-backend-risc-v Author: Harald van Dijk (hvdijk)
Please consider this automatically reduced (courtesy of `llvm-reduce`) `tmp.ll`:
```llvm
; ModuleID = 'tmp.bc'
target datalayout = "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128"
target triple = "riscv64-unknown-linux-gnu"
; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none) define spir_kernel void @_ZTS6kernelILi4330275EE() #1 { ; Function Attrs: alwaysinline attributes #0 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
clang: /home/harald/llvm-project/main/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:969: void {anonymous}::SelectionDAGLegalize::LegalizeOp(llvm::SDNode*): Assertion `(TLI.getTypeAction(*DAG.getContext(), Op.getValueType()) == TargetLowering::TypeLegal || Op.getOpcode() == ISD::TargetConstant || Op.getOpcode() == ISD::Register) && "Unexpected illegal type!"' failed.
|
The default expansion tries to create i16 operations after type legalization. Fixes llvm#117349
The default expansion tries to create i16 operations after type legalization. Fixes #117349
Please consider this automatically reduced (courtesy of
llvm-reduce
)tmp.ll
:Compiling this with
clang --target=riscv64-linux-gnu -c tmp.ll
results in:The original input before reduction was too large to submit here, apologies if
llvm-reduce
turned it into something less sensible.The text was updated successfully, but these errors were encountered: