[RISCV] Add initial test coverage for LSR
authorPhilip Reames <preames@rivosinc.com>
Fri, 20 May 2022 17:05:55 +0000 (10:05 -0700)
committerPhilip Reames <listmail@philipreames.com>
Fri, 20 May 2022 17:23:18 +0000 (10:23 -0700)
commit923831ebc37c258268db57856f066980aa3eef18
tree31e2e93add7324f60d9e335093500af93ca7a4f7
parent98d141481e0410bb830fb257be7099edfca6e17f
[RISCV] Add initial test coverage for LSR

Establish the most basic possible test coverage for LSR transformation on RISCV.

Original patch by eopXD (D123458), modified by me to cleanup/simplify tests.
llvm/test/CodeGen/RISCV/loop-strength-reduce-add-cheaper-than-mul.ll [new file with mode: 0644]
llvm/test/CodeGen/RISCV/loop-strength-reduce-loop-invar.ll [new file with mode: 0644]