[PATCH] D154768: [CSKY] Optimize conditional branch and value select with BTSTI

Ben Shi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 8 06:13:49 PDT 2023


benshi001 added inline comments.


================
Comment at: llvm/test/CodeGen/CSKY/select.ll:8277
 ; CHECK:       # %bb.0:
 ; CHECK-NEXT:    andi32 a0, a0, 256
 ; CHECK-NEXT:    cmpnei16 a0, 0
----------------
This test is not optimized with  `BTSTI` due to the immediate 256 can be directly encoded into `ANDI`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D154768/new/

https://reviews.llvm.org/D154768



More information about the llvm-commits mailing list