[PATCH] D131236: [llvm][ir][NFC] Clean up "if after return" in ProfDataUtils.cpp
Paul Kirth via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 26 13:27:56 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGdeef5b8c0d69: [llvm][ir][NFC] Clean up "if after return" in ProfDataUtils.cpp (authored by paulkirth).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131236/new/
https://reviews.llvm.org/D131236
Files:
llvm/lib/IR/ProfDataUtils.cpp
Index: llvm/lib/IR/ProfDataUtils.cpp
===================================================================
--- llvm/lib/IR/ProfDataUtils.cpp
+++ llvm/lib/IR/ProfDataUtils.cpp
@@ -149,8 +149,10 @@
TotalVal += V->getValue().getZExtValue();
}
return true;
- } else if (ProfDataName->getString().equals("VP") &&
- ProfileData->getNumOperands() > 3) {
+ }
+
+ if (ProfDataName->getString().equals("VP") &&
+ ProfileData->getNumOperands() > 3) {
TotalVal = mdconst::dyn_extract<ConstantInt>(ProfileData->getOperand(2))
->getValue()
.getZExtValue();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131236.456009.patch
Type: text/x-patch
Size: 623 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220826/7ded1aee/attachment.bin>
More information about the llvm-commits
mailing list