diff options
author | Ben Shi <powerman1st@163.com> | 2021-06-08 07:26:00 +0800 |
---|---|---|
committer | Ben Shi <powerman1st@163.com> | 2021-06-08 07:26:00 +0800 |
commit | c705b7b04dba467a67871a1bbb77907d0ed7fc19 (patch) | |
tree | f4b52cef96943f348ae70e4dea704910c78ae933 /libcxx/include/__algorithm/replace.h | |
parent | 47211fa88905f601a1e256f489591d5b91ec6a05 (diff) | |
download | llvm-c705b7b04dba467a67871a1bbb77907d0ed7fc19.zip llvm-c705b7b04dba467a67871a1bbb77907d0ed7fc19.tar.gz llvm-c705b7b04dba467a67871a1bbb77907d0ed7fc19.tar.bz2 |
[RISCV] Optimize bitwise and with constant for the Zbs extension
This patch optimizes (and r i) to
(BCLRI (BCLRI r, i0), i1) in which i = ~((1<<i0) | (1<<i1)).
or
(BCLRI (ANDI r, i0), i1) in which i = i0 & ~(1<<i1).
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D103743
Diffstat (limited to 'libcxx/include/__algorithm/replace.h')
0 files changed, 0 insertions, 0 deletions