[llvm] r374463 - [GISel] Simplifying return from else in function. NFC
Marcello Maggioni via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 10 14:51:30 PDT 2019
Author: mggm
Date: Thu Oct 10 14:51:30 2019
New Revision: 374463
URL: http://llvm.org/viewvc/llvm-project?rev=374463&view=rev
Log:
[GISel] Simplifying return from else in function. NFC
Forgot to integrate this little change in previous commit
Modified:
llvm/trunk/lib/CodeGen/GlobalISel/Utils.cpp
Modified: llvm/trunk/lib/CodeGen/GlobalISel/Utils.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/GlobalISel/Utils.cpp?rev=374463&r1=374462&r2=374463&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/GlobalISel/Utils.cpp (original)
+++ llvm/trunk/lib/CodeGen/GlobalISel/Utils.cpp Thu Oct 10 14:51:30 2019
@@ -238,9 +238,8 @@ Optional<ValueAndVReg> llvm::getConstant
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) {
More information about the llvm-commits
mailing list