ARM: skip debug instructions when matching jump-table patterns.
authorTim Northover <tnorthover@apple.com>
Wed, 18 Jan 2023 15:12:29 +0000 (15:12 +0000)
committerTim Northover <tnorthover@apple.com>
Thu, 26 Jan 2023 13:00:36 +0000 (13:00 +0000)
commitce4fcea59e1d5829b4355b6401d7265be23f617a
tree98d03ea22cae135708bdfc5b50098b8e78ab5dde
parent85395af27241ab9c8d5763b8afcaa07f1bab26d5
ARM: skip debug instructions when matching jump-table patterns.

When working out whether we can see a compressible jump-table pattern during
ConstantIslands, we were stopping when we saw a debug instruction. Instead it's
better to keep iterating backwards to the first real instruction.
llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
llvm/test/CodeGen/ARM/jump-table-dbg-value.mir [new file with mode: 0644]