HomePhabricator

[RISCV] Remove assertsexti32 from inputs to riscv_sllw/srlw nodes in B…

Authored by craig.topper on Nov 4 2020, 10:35 AM.

Description

[RISCV] Remove assertsexti32 from inputs to riscv_sllw/srlw nodes in B extension isel patterns.

riscv_sllw/srlw only reads the lower 32 bits of the first operand.
And the lower 5 bits of the second operands. Whether the upper
32 bits of the input are sign bits or not doesn't matter.

Also use ineg and not to shorten the patterns.

Differential Revision: https://reviews.llvm.org/D90668