OSDN Git Service

[RISCV] Mark C.EBREAK instruction as having side effects
authorAlex Bradbury <asb@lowrisc.org>
Thu, 15 Nov 2018 14:52:24 +0000 (14:52 +0000)
committerAlex Bradbury <asb@lowrisc.org>
Thu, 15 Nov 2018 14:52:24 +0000 (14:52 +0000)
commit643206597fa281803bfdbaf8281c75d842936ba2
treecf4e69baed877651a0b59945608ce9eae8548d04
parentd566da724ad9c7b4f391ee61e51714e5d39cacad
[RISCV] Mark C.EBREAK instruction as having side effects

C.EBREAK was defined with hasSideEffects = 0, which is incorrect and
inconsistent with the non-compressed instruction form. This patch corrects
this oversight.

This wouldn't cause codegen issues, as compressed instructions are only ever
generated by converting the non-compressed form as an MCInst. But having
correct flags is still worthwhile.

Differential Revision: https://reviews.llvm.org/D54256
Patch by Luís Marques.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@346959 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/RISCV/RISCVInstrInfoC.td