[RISCV] Don't set the SplatOperand flag on intrinsics that take a shift amount.
authorCraig Topper <craig.topper@sifive.com>
Tue, 30 Mar 2021 16:23:34 +0000 (09:23 -0700)
committerCraig Topper <craig.topper@sifive.com>
Tue, 30 Mar 2021 16:23:36 +0000 (09:23 -0700)
commit292816d2b613fdf5efbd4287b656bb793ad18e12
tree4f8bfa7551c555bcf769baef6ac5cb940a121240
parentf069000b433c3d08157a57b554a3a17c46cba04d
[RISCV] Don't set the SplatOperand flag on intrinsics that take a shift amount.

The shift amount should always be a vector or an XLen scalar.
The SplatOperand flag is used to indicate we need to legalize
non-XLen scalars including special handling for i64 on RV32.
This will prevent us from silently adjusting these operands if
the intrinsics are misused.

I'll probably adjust the name of the SplatOperand flag slightly
in a follow up patch.

Reviewed By: khchen, frasercrmck

Differential Revision: https://reviews.llvm.org/D99545
llvm/include/llvm/IR/IntrinsicsRISCV.td