This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Remove is*Branch instruction flags from C_JR
ClosedPublic

Authored by jobnoorman on Apr 7 2023, 5:43 AM.

Details

Summary

As discussed in 1d1b3c49531b, instruction flags set in the *.td files
are under-approximations. For C_JR, isBranch and isConditionalBranch are
set even though it is used for for returns which are not considered
branches.

This patch proposes to remove those flags from C_JR. More detailed
analysis can be implemented in RISCVMCInstrAnalysis.

Diff Detail

Event Timeline

jobnoorman created this revision.Apr 7 2023, 5:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 7 2023, 5:43 AM
jobnoorman requested review of this revision.Apr 7 2023, 5:43 AM
This revision is now accepted and ready to land.Apr 7 2023, 11:09 AM
This revision was automatically updated to reflect the committed changes.