[llvm] r229300 - [x86] Use a more helpful parenthesizing of these comparisons. Silences
Chandler Carruth
chandlerc at gmail.com
Sun Feb 15 02:15:20 PST 2015
Author: chandlerc
Date: Sun Feb 15 04:15:20 2015
New Revision: 229300
URL: http://llvm.org/viewvc/llvm-project?rev=229300&view=rev
Log:
[x86] Use a more helpful parenthesizing of these comparisons. Silences
a -Wparentheses complaint from GCC.
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=229300&r1=229299&r2=229300&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sun Feb 15 04:15:20 2015
@@ -8599,9 +8599,9 @@ static bool isSingleSHUFPSMask(ArrayRef<
// To lower with a single SHUFPS we need to have the low half and high half
// each requiring a single input.
- if (Mask[0] != -1 && Mask[1] != -1 && (Mask[0] < 4 != Mask[1] < 4))
+ if (Mask[0] != -1 && Mask[1] != -1 && (Mask[0] < 4) != (Mask[1] < 4))
return false;
- if (Mask[2] != -1 && Mask[3] != -1 && (Mask[2] < 4 != Mask[3] < 4))
+ if (Mask[2] != -1 && Mask[3] != -1 && (Mask[2] < 4) != (Mask[3] < 4))
return false;
return true;
More information about the llvm-commits
mailing list