Simplify code.
authorJakub Staszak <kubastaszak@gmail.com>
Thu, 6 Dec 2012 18:22:59 +0000 (18:22 +0000)
committerJakub Staszak <kubastaszak@gmail.com>
Thu, 6 Dec 2012 18:22:59 +0000 (18:22 +0000)
llvm-svn: 169521

llvm/lib/Target/X86/X86ISelLowering.cpp

index 20fe41d..11fbabc 100644 (file)
@@ -3252,9 +3252,7 @@ static bool isUndefOrInRange(int Val, int Low, int Hi) {
 /// isUndefOrEqual - Val is either less than zero (undef) or equal to the
 /// specified value.
 static bool isUndefOrEqual(int Val, int CmpVal) {
-  if (Val < 0 || Val == CmpVal)
-    return true;
-  return false;
+  return (Val < 0 || Val == CmpVal);
 }
 
 /// isSequentialOrUndefInRange - Return true if every element in Mask, beginning