[CSKY] Optimize conditional branch with BLZ32/BLSZ32/BHZ32/BHSZ32
authorBen Shi <2283975856@qq.com>
Fri, 23 Jun 2023 04:23:30 +0000 (12:23 +0800)
committerBen Shi <2283975856@qq.com>
Mon, 3 Jul 2023 07:03:43 +0000 (15:03 +0800)
commitd53063c3e2369e045652f9e7952fdf781ae77445
tree7136a0b47e9f9a26ec2ab85092abc12b7a21b9fc
parent86829d15f4ca62e70e690a9414eb0dfd470bd393
[CSKY] Optimize conditional branch with BLZ32/BLSZ32/BHZ32/BHSZ32

Add more `Pat`s to generate BLZ32/BLSZ32/BHZ32/BHSZ32.

Reviewed By: zixuan-wu

Differential Revision: https://reviews.llvm.org/D153607
llvm/lib/Target/CSKY/CSKYInstrInfo.td
llvm/test/CodeGen/CSKY/br.ll