[RISCV] Remove isCall instruction flag from JAL/JALR
authorJob Noorman <jnoorman@igalia.com>
Mon, 27 Mar 2023 14:10:48 +0000 (16:10 +0200)
committerJob Noorman <jnoorman@igalia.com>
Mon, 27 Mar 2023 14:11:14 +0000 (16:11 +0200)
commit1d1b3c49531bb80bcd28870d4eafb71d97049e02
treeab05dcc53ca7a013929f4f3efd47892000572963
parent636efd2e3508f4a39717cee75c1255a48acb8f4e
[RISCV] Remove isCall instruction flag from JAL/JALR

As far as I can tell, the instruction flags set in the various
RISCVInstrInfo*.td files are always under-approximations. That is,
something like isTerminator will only be set for opcodes that are
*always* terminators.

The exception seems to be isCall; this is set for JAL/JALR while these
instruction are not always calls. This patch proposes to remove isCall
from JAL/JALR for consistency.

A follow-up patch will add more detailed analysis of some instruction
properties based on MCInstrAnalysis.

Reviewed By: asb, craig.topper

Differential Revision: https://reviews.llvm.org/D146437
llvm/lib/Target/RISCV/RISCVInstrInfo.td