[PowerPC] Remove extra instruction left by emitRLDICWhenLoweringJumpTables
authorAnil Mahmud <Anil.Mahmud@ibm.com>
Tue, 9 Jun 2020 01:43:56 +0000 (20:43 -0500)
committerStefan Pintilie <stefanp@ca.ibm.com>
Tue, 9 Jun 2020 01:43:56 +0000 (20:43 -0500)
commitc9790d54f83311821c6fa23a89615569bde6484f
treee34056eb720586c5868bdcdcfa0bed0fd5036264
parentb4036329f1634f66273516840bedfaae1399f87d
[PowerPC] Remove extra instruction left by emitRLDICWhenLoweringJumpTables

The function emitRLDICWhenLoweringJumpTables in PPCMIPeephole.cpp
was supposed to convert a pair of RLDICL and RLDICR to a single RLDIC,
but it was leaving out the RLDICL instruction. This PR fixes the bug.

Differential Revision: https://reviews.llvm.org/D78063
llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
llvm/test/CodeGen/PowerPC/jump-tables-collapse-rotate-remove-SrcMI.mir [new file with mode: 0644]