[llvm] r321755 - [X86] Remove 'else' after 'return' I forgot to cleanup before committing D41691.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 3 11:15:43 PST 2018


Author: ctopper
Date: Wed Jan  3 11:15:43 2018
New Revision: 321755

URL: http://llvm.org/viewvc/llvm-project?rev=321755&view=rev
Log:
[X86] Remove 'else' after 'return' I forgot to cleanup before committing D41691.

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=321755&r1=321754&r2=321755&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Jan  3 11:15:43 2018
@@ -2168,13 +2168,16 @@ static SDValue lowerMasksToReg(const SDV
     if (ValLoc == MVT::i32)
       ValToCopy = DAG.getNode(ISD::ANY_EXTEND, Dl, ValLoc, ValToCopy);
     return ValToCopy;
-  } else if ((ValVT == MVT::v32i1 && ValLoc == MVT::i32) ||
-             (ValVT == MVT::v64i1 && ValLoc == MVT::i64)) {
+  }
+
+  if ((ValVT == MVT::v32i1 && ValLoc == MVT::i32) ||
+      (ValVT == MVT::v64i1 && ValLoc == MVT::i64)) {
     // One stage lowering is required
     // bitcast:   v32i1 -> i32 / v64i1 -> i64
     return DAG.getBitcast(ValLoc, ValArg);
-  } else
-    return DAG.getNode(ISD::ANY_EXTEND, Dl, ValLoc, ValArg);
+  }
+
+  return DAG.getNode(ISD::ANY_EXTEND, Dl, ValLoc, ValArg);
 }
 
 /// Breaks v64i1 value into two registers and adds the new node to the DAG




More information about the llvm-commits mailing list