[PATCH] D115922: [RISCV] Override hasAndNotCompare to use more andn when have Zbb extension.

Jessica Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 17 09:38:50 PST 2021


jrtc27 added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:1180
+bool RISCVTargetLowering::hasAndNot(SDValue Y) const {
+  return hasAndNotCompare(Y);
+}
----------------
This is the default implementation


================
Comment at: llvm/test/CodeGen/RISCV/rv32zbb-zbp.ll:561
+
+
+define i1 @andn_seqz_i32(i32 %a, i32 %b) nounwind {
----------------
Don't put double blank lines in


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D115922/new/

https://reviews.llvm.org/D115922



More information about the llvm-commits mailing list