[llvm] r240064 - use SDValue bool operator; NFCI

Sanjay Patel spatel at rotateright.com
Thu Jun 18 14:44:31 PDT 2015


Author: spatel
Date: Thu Jun 18 16:44:31 2015
New Revision: 240064

URL: http://llvm.org/viewvc/llvm-project?rev=240064&view=rev
Log:
use SDValue bool operator; NFCI

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=240064&r1=240063&r2=240064&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Thu Jun 18 16:44:31 2015
@@ -11056,9 +11056,8 @@ static SDValue LowerINSERT_SUBVECTOR(SDV
     if (auto *Idx2 = dyn_cast<ConstantSDNode>(Vec.getOperand(2))) {
       if (Idx2->getZExtValue() == 0) {
         SDValue Ops[] = { SubVec2, SubVec };
-        SDValue LD = EltsFromConsecutiveLoads(OpVT, Ops, dl, DAG, false);
-        if (LD.getNode())
-          return LD;
+        if (SDValue Ld = EltsFromConsecutiveLoads(OpVT, Ops, dl, DAG, false))
+          return Ld;
       }
     }
   }





More information about the llvm-commits mailing list