Skip to content

Commit e916366

Browse files
committed
[PPC][LLVM] Inclusive terms: remove references to sanity check in lib/Target/PowerPC
Removed references to `sanity check` in `PPCBranchCoalescing.cpp` code comments. No word substitution made in this case, as the comments and code following illustrated are sufficient IMO. Reviewed By: quinnp Differential Revision: https://reviews.llvm.org/D112452
1 parent 3850cba commit e916366

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Target/PowerPC/PPCBranchCoalescing.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ bool PPCBranchCoalescing::canCoalesceBranch(CoalescingCandidateInfo &Cand) {
291291
return false;
292292
}
293293

294-
// Sanity check - the block must be able to fall through
294+
// The block must be able to fall through.
295295
assert(Cand.BranchBlock->canFallThrough() &&
296296
"Expecting the block to fall through!");
297297

@@ -751,9 +751,8 @@ bool PPCBranchCoalescing::runOnMachineFunction(MachineFunction &MF) {
751751
if (!canCoalesceBranch(Cand2))
752752
break;
753753

754-
// Sanity check
755754
// The branch-taken block of the second candidate should post-dominate the
756-
// first candidate
755+
// first candidate.
757756
assert(MPDT->dominates(Cand2.BranchTargetBlock, Cand1.BranchBlock) &&
758757
"Branch-taken block should post-dominate first candidate");
759758

0 commit comments

Comments
 (0)