[LSR] Add test coverage for ICmpZero cases involving urem RHS
authorPhilip Reames <preames@rivosinc.com>
Thu, 14 Jul 2022 00:12:48 +0000 (17:12 -0700)
committerPhilip Reames <listmail@philipreames.com>
Thu, 14 Jul 2022 00:15:07 +0000 (17:15 -0700)
commitddd4ed99445dba17ccffc22a9d74a5448745a466
tree24fa2aaabf2b2b87e086a2b78a5acb40f1d4a885
parent6f7347b888a475a20451863b5142c455d2b0450b
[LSR] Add test coverage for ICmpZero cases involving urem RHS

For the moment, we're pretty conservative here.  My motivating case is the vscale one (as that is idiomatic for scalable vectorized loops on RISCV).  There are two obvious approaches to fixing this, and I tried to add reasonable coverage for both even though I'll likely only fix one.
llvm/test/Transforms/LoopStrengthReduce/RISCV/icmp-zero.ll [new file with mode: 0644]
llvm/test/Transforms/LoopStrengthReduce/RISCV/lit.local.cfg [new file with mode: 0644]