[PATCH] D117210: [CodeGen] Support folds of not(cmp(cc, ...)) -> cmp(!cc, ...) for scalable vectors

Fraser Cormack via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 13 04:45:01 PST 2022


frasercrmck added a comment.

Nice, I'd missed that one. I was going to ask about `SPLAT_VECTOR_PARTS` but I'm not sure we could get a test for that, seeing as I think it's only generated for 64-bit integer splats on RV32.



================
Comment at: llvm/test/CodeGen/RISCV/rvv/cmp-folds.ll:3
+; RUN: llc -mtriple=riscv32 -mattr=+d,+experimental-zfh,+experimental-v \
+; RUN:     -verify-machineinstrs < %s | FileCheck %s --check-prefixes=RV32
+; RUN: llc -mtriple=riscv64 -mattr=+d,+experimental-zfh,+experimental-v \
----------------
I think using `--check-prefixes=CHECK,RV32` is fairly common in our RVV testing and looks like it'd help remove all duplicate checks.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D117210



More information about the llvm-commits mailing list