Skip to content

Missing isCall and isBranch flags for RISCV instructions #161104

@moste00

Description

@moste00

The common root class Instruction defines several flags to roughly classify the semantics of an instruction, among them is an isCall and isBranch flags.

bit isBranch = false; // Is this instruction a branch instruction?

Image

This flag is not set correctly in the definition of the JAL and the JALR instruction in RISCVInstrInfo.td
Image

The instruction C_JR also doesn't have the isBranch flag set in RISCVInstrInfoC.td

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    backend:RISC-VquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions