[llvm] [RISCV] Add vector hasAndNot to enable optimizations (PR #132438)
Piotr Fusik via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 21 11:08:29 PDT 2025
https://github.com/pfusik commented:
I came across a `FIXME` comment. Implementing the vectors in a separate function because my understanding is that `hasAndNotCompare` says it's cheap to check if the result of ANDN is zero - true for scalars, but not RVV AFAIK. [X86](https://github.com/llvm/llvm-project/blob/cb2ee1e64db663ec8b39554a3cf93cc924d89818/llvm/lib/Target/X86/X86ISelLowering.cpp) does it this way.
https://github.com/llvm/llvm-project/pull/132438
More information about the llvm-commits
mailing list