[X86] LowerRotate - use X86::isConstantSplat to detect constant splat rotation amounts.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 16 Mar 2020 11:44:03 +0000 (11:44 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 16 Mar 2020 12:56:23 +0000 (12:56 +0000)
commitac4609cb1d0c1104c20a3a7483750e137c3feac4
tree4554b6867638a7770b0b73a5ba85877bc09b6abf
parent67d25914b2a42cef88124fe267c7a89cce9e7987
[X86] LowerRotate - use X86::isConstantSplat to detect constant splat rotation amounts.

Avoid code duplication and matches what we do for the similar LowerFunnelShift and LowerScalarImmediateShift methods.
llvm/lib/Target/X86/X86ISelLowering.cpp