[llvm] r251398 - Do not use "else" when both branches return (NFC)

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 27 01:12:09 PDT 2015


Author: mehdi_amini
Date: Tue Oct 27 03:12:08 2015
New Revision: 251398

URL: http://llvm.org/viewvc/llvm-project?rev=251398&view=rev
Log:
Do not use "else" when both branches return (NFC)

From: Mehdi Amini <mehdi.amini at apple.com>

Modified:
    llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp

Modified: llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp?rev=251398&r1=251397&r2=251398&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp Tue Oct 27 03:12:08 2015
@@ -219,9 +219,8 @@ SDValue VectorLegalizer::LegalizeOp(SDVa
             assert(Result.getValue(1).use_empty() &&
                    "There are still live users of the old chain!");
             return LegalizeOp(Lowered);
-          } else {
-            return TranslateLegalizeResults(Op, Lowered);
           }
+          return TranslateLegalizeResults(Op, Lowered);
         }
       case TargetLowering::Expand:
         Changed = true;




More information about the llvm-commits mailing list