Skip to content

Commit 9570578

Browse files
committed
minor code review comments
1 parent 2db6abd commit 9570578

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

llvm/include/llvm/IR/ProfDataUtils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ LLVM_ABI void setExplicitlyUnknownBranchWeights(Instruction &I,
187187

188188
/// Like setExplicitlyUnknownBranchWeights(...), but only sets unknown branch
189189
/// weights in the new instruction if the parent function of the original
190-
/// instruction has function counts. This is to not confuse users by injecting
190+
/// instruction has an entry count. This is to not confuse users by injecting
191191
/// profile data into non-profiled functions.
192192
LLVM_ABI void setExplicitlyUnknownBranchWeightsIfProfiled(Instruction &I,
193193
Function &F,

llvm/lib/Transforms/InstCombine/InstCombineInternal.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,9 +476,8 @@ class LLVM_LIBRARY_VISIBILITY InstCombinerImpl final
476476
Instruction *MDFrom = nullptr) {
477477
SelectInst *SI =
478478
SelectInst::Create(C, S1, S2, NameStr, InsertBefore, MDFrom);
479-
if (!MDFrom) {
479+
if (!MDFrom)
480480
setExplicitlyUnknownBranchWeightsIfProfiled(*SI, F, DEBUG_TYPE);
481-
}
482481
return SI;
483482
}
484483

0 commit comments

Comments
 (0)