Skip to content

[LoongArch] Crash when running the LoongArch Optimize W Instructions pass #172600

@SixWeining

Description

@SixWeining

llvm commit: f734ceb
testcase: reduced.ll.txt (rename it to reduced.ll) (This is a test case simplified from ffmpeg's source code h264dsp_lasx.c)

$ _build/bin/llc reduced.ll 
llc: /home/user/llvm-project/llvm/include/llvm/CodeGen/Register.h:88: unsigned int llvm::Register::virtRegIndex() const: Assertion `isVirtual() && "Not a virtual register"' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
Stack dump:
0.      Program arguments: /home/user/llvm-project/_build/bin/llc reduced.ll
1.      Running pass 'Function Pass Manager' on module 'reduced.ll'.
2.      Running pass 'LoongArch Optimize W Instructions' on function '@ff_h264_v_lpf_luma_8_lasx'
^C

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend:loongarchcrashPrefer [crash-on-valid] or [crash-on-invalid]

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions