Skip to content

[LLVM][RISCV][ICE] Compiler crash at Assertion Failure at (!From->hasAnyUseOfValue(i) ||, file SelectionDAG.cpp:12171 since a652979b483da6e5a45ebf6428be408de66ac857 #158121

@whileone-sk

Description

@whileone-sk

Assertion '(!From->hasAnyUseOfValue(i) || From->getValueType(i) == To->getValueType(i)) && "Cannot use this version of ReplaceAllUsesWith!"' failed.:
It's a failed assertion within the Clang compiler's source code, specifically in the SelectionDAG.cpp.

RUN script red-a48470.sh to reproduce the issue.

source red-a48470.c
script red-a48470.sh

Attached backtrace.
verbose-log.txt
red.c

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend:RISC-VcrashPrefer [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