aboutsummaryrefslogtreecommitdiff
path: root/libcxx/include/__algorithm/replace.h
diff options
context:
space:
mode:
authorBen Shi <powerman1st@163.com>2021-06-08 07:26:00 +0800
committerBen Shi <powerman1st@163.com>2021-06-08 07:26:00 +0800
commitc705b7b04dba467a67871a1bbb77907d0ed7fc19 (patch)
treef4b52cef96943f348ae70e4dea704910c78ae933 /libcxx/include/__algorithm/replace.h
parent47211fa88905f601a1e256f489591d5b91ec6a05 (diff)
downloadllvm-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