Hiroshi Inoue 20982f0995 [PowerPC] optimize conditional branch on CRSET/CRUNSET
This patch adds a check to optimize conditional branch (BC and BCn) based on a constant set by CRSET or CRUNSET.
Other optimizers, such as block placement, may generate such code and hence
I do this at the very end of the optimization in pre-emit peephole pass.

A conditional branch based on a constant is eliminated or converted into unconditional branch. 
Also CRSET/CRUNSET is eliminated if the condition code register is not used
by instruction other than the branch to be optimized.

Differential Revision: https://reviews.llvm.org/D52345

llvm-svn: 343100
2018-09-26 12:32:45 +00:00
..
2018-09-07 07:56:05 +00:00
2017-11-06 19:09:38 +00:00
2016-02-29 16:42:27 +00:00
2017-10-10 08:46:10 +00:00
2017-01-22 20:28:56 +00:00
2018-08-27 13:20:42 +00:00
2018-08-27 13:20:42 +00:00