[llvm] r231123 - use bool operator shortcut; NFC
Sanjay Patel
spatel at rotateright.com
Tue Mar 3 12:41:27 PST 2015
Author: spatel
Date: Tue Mar 3 14:41:27 2015
New Revision: 231123
URL: http://llvm.org/viewvc/llvm-project?rev=231123&view=rev
Log:
use bool operator shortcut; NFC
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=231123&r1=231122&r2=231123&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Tue Mar 3 14:41:27 2015
@@ -10134,8 +10134,7 @@ SDValue X86TargetLowering::LowerVSELECT(
// Try to lower this to a blend-style vector shuffle. This can handle all
// constant condition cases.
- SDValue BlendOp = lowerVSELECTtoVectorShuffle(Op, Subtarget, DAG);
- if (BlendOp.getNode())
+ if (SDValue BlendOp = lowerVSELECTtoVectorShuffle(Op, Subtarget, DAG))
return BlendOp;
// Variable blends are only legal from SSE4.1 onward.
More information about the llvm-commits
mailing list