[llvm-commits] [llvm] r169521 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Jakub Staszak
kubastaszak at gmail.com
Thu Dec 6 10:23:00 PST 2012
Author: kuba
Date: Thu Dec 6 12:22:59 2012
New Revision: 169521
URL: http://llvm.org/viewvc/llvm-project?rev=169521&view=rev
Log:
Simplify code.
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=169521&r1=169520&r2=169521&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Thu Dec 6 12:22:59 2012
@@ -3252,9 +3252,7 @@
/// 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
More information about the llvm-commits
mailing list