[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
Thu Aug 4 20:37:59 PDT 2022
paulkirth created this revision.
paulkirth added reviewers: phosek, davidxl, bogner.
Herald added a subscriber: hiraditya.
Herald added a project: All.
paulkirth requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
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
@@ -137,8 +137,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.450220.patch
Type: text/x-patch
Size: 623 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220805/f96f8f69/attachment.bin>
More information about the llvm-commits
mailing list