[mips] Teach the delay slot filler to transform 'jal' for microMIPS
authorSimon Dardis <simon.dardis@mips.com>
Wed, 25 Apr 2018 14:12:57 +0000 (14:12 +0000)
committerSimon Dardis <simon.dardis@mips.com>
Wed, 25 Apr 2018 14:12:57 +0000 (14:12 +0000)
commit0f2f5976d07f4cfc312f2f2485e982551d6d6cf1
treec68e363623af75422eabff0d58d23f6d7f9fe83d
parent9061e4f48627f01316ddc5887f3dd23225fdd500
[mips] Teach the delay slot filler to transform 'jal' for microMIPS

ISel is currently picking 'JAL' over 'JAL_MM' for calling a function when
targeting microMIPS. A later patch will correct this behaviour.

This patch extends the mechanism for transforming instructions into their short
delay to recognise 'JAL_MM' for transforming into 'JALS_MM'.

llvm-svn: 330825
llvm/lib/Target/Mips/MipsDelaySlotFiller.cpp
llvm/test/CodeGen/Mips/micromips-short-delay-slot.mir [new file with mode: 0644]