[PATCH] D153614: [CSKY] Optimize ANDI/ORI to BCLRI/BSETI for specific immediates
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 23 00:59:08 PDT 2023
benshi001 added inline comments.
================
Comment at: llvm/test/CodeGen/CSKY/bseti_bclri.ll:54
; CHECK-NEXT: movih32 a1, 1
; CHECK-NEXT: ori32 a1, a1, 4
; CHECK-NEXT: or16 a0, a1
----------------
This case will be optimized to `(BSETI (BSETI x, 16), 2)` in the future.
================
Comment at: llvm/test/CodeGen/CSKY/bseti_bclri.ll:109
define i32 @test_andnot_65540(i32 noundef %0) {
; CHECK-LABEL: test_andnot_65540:
; CHECK: # %bb.0:
----------------
This case will be optimized to `(BCLRI (BCLRI x, 16), 2)` in the future.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153614/new/
https://reviews.llvm.org/D153614
More information about the llvm-commits
mailing list