diff options
author | Yeting Kuo <46629943+yetingk@users.noreply.github.com> | 2023-11-29 11:56:48 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-29 11:56:48 +0800 |
commit | f73844d92b36cb6801ac50ea721f4ba29b35d7a9 (patch) | |
tree | b3951df2cb036c9fb3c7f13524efaa118ed5422f /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 4b8964dfd8b7ec989cd64a3606a364f2ddbbf285 (diff) | |
download | llvm-f73844d92b36cb6801ac50ea721f4ba29b35d7a9.zip llvm-f73844d92b36cb6801ac50ea721f4ba29b35d7a9.tar.gz llvm-f73844d92b36cb6801ac50ea721f4ba29b35d7a9.tar.bz2 |
[RISCV] Generate bexti for (select(setcc eq (and x, c))) where c is power of 2. (#73649)
Currently, llvm can transform (setcc ne (and x, c)) to (bexti x,
log2(c)) where c is power of 2.
This patch transform (select (setcc ne (and x, c)), T, F) into (select
(setcc eq (and x, c)), F, T).
It is benefit to the case c is not fit to 12-bits.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions