[LoongArch] Override TargetLowering::hasAndNotCompare()
Override hasAndNotCompare() to use more `ANDN` instead of using `AND` and `NOT`. This patch enables the following transforms: (X & Y) == Y ---> (~X & Y) == 0 (X & Y) != Y ---> (~X & Y) != 0. Differential Revision: https://reviews.llvm.org/D143037
Loading
Please sign in to comment