[llvm] r199612 - Move the retrieval of VT after all of the early exits from PerformOrCombine that do not use VT. NFC.

Michael Gottesman mgottesman at apple.com
Sun Jan 19 13:06:01 PST 2014


Author: mgottesman
Date: Sun Jan 19 15:06:00 2014
New Revision: 199612

URL: http://llvm.org/viewvc/llvm-project?rev=199612&view=rev
Log:
Move the retrieval of VT after all of the early exits from PerformOrCombine that do not use VT. 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=199612&r1=199611&r2=199612&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sun Jan 19 15:06:00 2014
@@ -17967,7 +17967,6 @@ static SDValue PerformAndCombine(SDNode
 static SDValue PerformOrCombine(SDNode *N, SelectionDAG &DAG,
                                 TargetLowering::DAGCombinerInfo &DCI,
                                 const X86Subtarget *Subtarget) {
-  EVT VT = N->getValueType(0);
   if (DCI.isBeforeLegalizeOps())
     return SDValue();
 
@@ -17977,6 +17976,7 @@ static SDValue PerformOrCombine(SDNode *
 
   SDValue N0 = N->getOperand(0);
   SDValue N1 = N->getOperand(1);
+  EVT VT = N->getValueType(0);
 
   // look for psign/blend
   if (VT == MVT::v2i64 || VT == MVT::v4i64) {





More information about the llvm-commits mailing list