[RISCV] Fix Machine Outliner jump table handling.
authorYvan Roux <yvan.roux@foss.st.com>
Thu, 9 Sep 2021 05:31:28 +0000 (07:31 +0200)
committerYvan Roux <yvan.roux@foss.st.com>
Thu, 9 Sep 2021 05:32:30 +0000 (07:32 +0200)
commit261cbe98c38f8c1ee1a482fe76511110e790f58a
tree9b853f42518fe64fbcc60ad94def879da5ff6fa9
parent12dcbf913c49db839b3669db0dcacd5de25facde
[RISCV] Fix Machine Outliner jump table handling.

Don't outline machine instructions which are using jump table indexes
since they are materialized as local labels (like the already handled
case of constant pools).

Reviewed By: paquette

Differential Revision: https://reviews.llvm.org/D109436
llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
llvm/test/CodeGen/RISCV/machineoutliner-jumptable.mir [new file with mode: 0644]