[llvm] r278216 - [X86][SSE] Reorder shuffle mask undef helper predicates. NFCI
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 10 05:34:23 PDT 2016
Author: rksimon
Date: Wed Aug 10 07:34:23 2016
New Revision: 278216
URL: http://llvm.org/viewvc/llvm-project?rev=278216&view=rev
Log:
[X86][SSE] Reorder shuffle mask undef helper predicates. NFCI
To make it easier for a more complex helper to use a simpler one
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=278216&r1=278215&r2=278216&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Aug 10 07:34:23 2016
@@ -4202,6 +4202,16 @@ bool X86TargetLowering::hasAndNotCompare
return true;
}
+/// Val is either less than zero (undef) or equal to the specified value.
+static bool isUndefOrEqual(int Val, int CmpVal) {
+ return (Val < 0 || Val == CmpVal);
+}
+
+/// Val is either the undef or zero sentinel value.
+static bool isUndefOrZero(int Val) {
+ return (Val == SM_SentinelUndef || Val == SM_SentinelZero);
+}
+
/// Return true if every element in Mask, beginning
/// from position Pos and ending in Pos+Size is undef.
static bool isUndefInRange(ArrayRef<int> Mask, unsigned Pos, unsigned Size) {
@@ -4227,16 +4237,6 @@ static bool isUndefOrInRange(ArrayRef<in
return true;
}
-/// Val is either less than zero (undef) or equal to the specified value.
-static bool isUndefOrEqual(int Val, int CmpVal) {
- return (Val < 0 || Val == CmpVal);
-}
-
-/// Val is either the undef or zero sentinel value.
-static bool isUndefOrZero(int Val) {
- return (Val == SM_SentinelUndef || Val == SM_SentinelZero);
-}
-
/// Return true if every element in Mask, beginning
/// from position Pos and ending in Pos+Size, falls within the specified
/// sequential range (Low, Low+Size]. or is undef.
More information about the llvm-commits
mailing list