diff options
author | Hans Wennborg <hans@chromium.org> | 2024-08-23 16:42:04 +0200 |
---|---|---|
committer | Hans Wennborg <hans@chromium.org> | 2024-08-23 16:42:04 +0200 |
commit | 858afe90aad9ca45165d64baec9249dd680c85d5 (patch) | |
tree | 685d9571373f8856ec801943bc61e122d97a1fe0 /clang/lib/CodeGen/BackendUtil.cpp | |
parent | dab19dac94eee19483ba1a7c37bdec4b8501acc3 (diff) | |
download | llvm-858afe90aad9ca45165d64baec9249dd680c85d5.zip llvm-858afe90aad9ca45165d64baec9249dd680c85d5.tar.gz llvm-858afe90aad9ca45165d64baec9249dd680c85d5.tar.bz2 |
Revert "[RISCV] Add isel optimization for (and (sra y, c2), c1) to recover regression from #101751. (#104114)"
This caused an assert to fire:
llvm/include/llvm/Support/Casting.h:566:
decltype(auto) llvm::cast(const From &) [To = llvm::ConstantSDNode, From = llvm::SDValue]:
Assertion `isa<To>(Val) && "cast<Ty>() argument of incompatible type!"' failed.
see comment on the PR.
> If c1 is a shifted mask with c3 leading zeros and c4 trailing zeros. If
> c2 is greater than c3, we can use (srli (srai y, c2 - c3), c3 + c4)
> followed by a SHXADD with c4 as the X amount.
>
> Without Zba we can use (slli (srli (srai y, c2 - c3), c3 + c4), c4).
> Alive2: https://alive2.llvm.org/ce/z/AwhheR
This reverts commit 514481736cf943464125ef34570a7df0a19290de.
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
0 files changed, 0 insertions, 0 deletions