]> granicus.if.org Git - llvm/commitdiff
[X86] Require second operand of X86vshiftuniform to be an integer. NFC
authorCraig Topper <craig.topper@intel.com>
Sat, 5 Jan 2019 01:40:29 +0000 (01:40 +0000)
committerCraig Topper <craig.topper@intel.com>
Sat, 5 Jan 2019 01:40:29 +0000 (01:40 +0000)
We don't need to require the first operand to be an integer because we already said it was the same type as the result which we also constrained to an integer.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350455 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrFragmentsSIMD.td

index 0b98abaa7a267b4592765fdbd9f9e8099594cfeb..9ba46117eb599a8494dfa6ed5dbb2cf52890caa1 100644 (file)
@@ -172,7 +172,7 @@ def X86phminpos: SDNode<"X86ISD::PHMINPOS",
 
 def X86vshiftuniform : SDTypeProfile<1, 2, [SDTCisVec<0>, SDTCisSameAs<0,1>,
                                             SDTCisVec<2>, SDTCisInt<0>,
-                                            SDTCisInt<1>]>;
+                                            SDTCisInt<2>]>;
 
 def X86vshl    : SDNode<"X86ISD::VSHL", X86vshiftuniform>;
 def X86vsrl    : SDNode<"X86ISD::VSRL", X86vshiftuniform>;