]> granicus.if.org Git - llvm/commitdiff
[GISel] Simplifying return from else in function. NFC
authorMarcello Maggioni <hayarms@gmail.com>
Thu, 10 Oct 2019 21:51:30 +0000 (21:51 +0000)
committerMarcello Maggioni <hayarms@gmail.com>
Thu, 10 Oct 2019 21:51:30 +0000 (21:51 +0000)
Forgot to integrate this little change in previous commit

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374463 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/GlobalISel/Utils.cpp

index cdabf272a9434b7a8c42a7a15afdff477393145d..45618d7992ad244d859eecf8a7e0adbb5f7f47af 100644 (file)
@@ -238,9 +238,8 @@ Optional<ValueAndVReg> llvm::getConstantVRegValWithLookThrough(
       assert(Val.getBitWidth() == BitWidth &&
              "Value bitwidth doesn't match definition type");
       return Val;
-    } else {
-      return CstVal.getFPImm()->getValueAPF().bitcastToAPInt();
     }
+    return CstVal.getFPImm()->getValueAPF().bitcastToAPInt();
   };
   while ((MI = MRI.getVRegDef(VReg)) && !IsConstantOpcode(MI->getOpcode()) &&
          LookThroughInstrs) {