[all-commits] [llvm/llvm-project] 28a3e7: [RISCV] Override hasAndNotCompare to use more andn...
Jianjian Guan via All-commits
all-commits at lists.llvm.org
Wed Dec 22 18:51:19 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 28a3e7dea2abb673c3dd3c08c111a6b00875bfb3
https://github.com/llvm/llvm-project/commit/28a3e7dea2abb673c3dd3c08c111a6b00875bfb3
Author: jacquesguan <jacquesguan at me.com>
Date: 2021-12-23 (Thu, 23 Dec 2021)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/lib/Target/RISCV/RISCVISelLowering.h
M llvm/test/CodeGen/RISCV/rv32zbb-zbp.ll
M llvm/test/CodeGen/RISCV/rv64zbb-zbp.ll
Log Message:
-----------
[RISCV] Override hasAndNotCompare to use more andn when have Zbb extension.
Enable transform (X & Y) == Y ---> (~X & Y) == 0 and (X & Y) != Y ---> (~X & Y) != 0 when have Zbb extension to use more andn instruction.
Differential Revision: https://reviews.llvm.org/D115922
More information about the All-commits
mailing list