[RISCV] Add support for fixed vector MULHU/MULHS.
authorCraig Topper <craig.topper@sifive.com>
Thu, 18 Feb 2021 17:09:33 +0000 (09:09 -0800)
committerCraig Topper <craig.topper@sifive.com>
Thu, 18 Feb 2021 17:15:08 +0000 (09:15 -0800)
commit156fc07e19ae599e638e18e598dbf5c5a4247408
treeadf85bf5dedcfa2739f089a0bea0080413f3c32a
parent13753808f4e990089bf34ff44474e85cc3e6e775
[RISCV] Add support for fixed vector MULHU/MULHS.

This uses to division by constant optimization to use MULHU/MULHS.

Reviewed By: frasercrmck, arcbbb

Differential Revision: https://reviews.llvm.org/D96934
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.h
llvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
llvm/test/CodeGen/RISCV/rvv/fixed-vectors-int.ll