[PowerPC] Remove the redundant terminator instruction when optimizing conditional...
authorVictor Huang <wei.huang@ibm.com>
Thu, 18 Nov 2021 23:52:04 +0000 (17:52 -0600)
committerVictor Huang <wei.huang@ibm.com>
Thu, 18 Nov 2021 23:52:26 +0000 (17:52 -0600)
commit40c65655aff911e21830db69e00dde601a40cf54
tree2a7819e4bf2707ba3ae1fd95ea0c90195108322e
parent24cc79b9efff5e1411a537307b719510e8d660f5
[PowerPC] Remove the redundant terminator instruction when optimizing conditional trap

This patch is a follow up patch for ae27ca9a678301969c35f2e27c76f14c9d2bb396 to
the remove redundant terminator when optimizing conditional trap.

Peer reviewed by: nemanjai
llvm/lib/Target/PowerPC/PPCMIPeephole.cpp
llvm/test/CodeGen/PowerPC/mi-peepholes-trap-opt.mir