Fix the compilation assertion due to unreachable BB pruning not deleting the associat...
authorVictor Huang <wei.huang@ibm.com>
Mon, 16 Nov 2020 16:33:06 +0000 (10:33 -0600)
committerVictor Huang <wei.huang@ibm.com>
Mon, 16 Nov 2020 16:35:31 +0000 (10:35 -0600)
commit6bb2ceac90875a54d5c28a2441c29b6cc6029c36
treec9811998438db4aec1a33adabfcd1586e2e7fadb
parenta6ecb2eb3d18803796a2eddc3aa0c9e248d17dd4
Fix the compilation assertion due to unreachable BB pruning not deleting the associated BB from the jump tables

This patch is added to remove the unreachable MBBs reference in the jump table.

Differential Revisien: https://reviews.llvm.org/D90498
Reviewed by: amyk, bsaleil
llvm/include/llvm/CodeGen/MachineJumpTableInfo.h
llvm/lib/CodeGen/MachineFunction.cpp
llvm/test/CodeGen/PowerPC/unreachable-mbb-jtreference-elimination.ll [new file with mode: 0644]