[llvm] e916366 - [PPC][LLVM] Inclusive terms: remove references to sanity check in lib/Target/PowerPC
Zarko Todorovski via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 25 15:13:57 PDT 2021
Author: Zarko Todorovski
Date: 2021-10-25T18:13:54-04:00
New Revision: e9163660b12c5da720a9cdb34b5e69777cf1c6f2
URL: https://github.com/llvm/llvm-project/commit/e9163660b12c5da720a9cdb34b5e69777cf1c6f2
DIFF: https://github.com/llvm/llvm-project/commit/e9163660b12c5da720a9cdb34b5e69777cf1c6f2.diff
LOG: [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
Added:
Modified:
llvm/lib/Target/PowerPC/PPCBranchCoalescing.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/PPCBranchCoalescing.cpp b/llvm/lib/Target/PowerPC/PPCBranchCoalescing.cpp
index 50ae4450a8375..786a3e163540c 100644
--- a/llvm/lib/Target/PowerPC/PPCBranchCoalescing.cpp
+++ b/llvm/lib/Target/PowerPC/PPCBranchCoalescing.cpp
@@ -291,7 +291,7 @@ bool PPCBranchCoalescing::canCoalesceBranch(CoalescingCandidateInfo &Cand) {
return false;
}
- // Sanity check - the block must be able to fall through
+ // The block must be able to fall through.
assert(Cand.BranchBlock->canFallThrough() &&
"Expecting the block to fall through!");
@@ -751,9 +751,8 @@ bool PPCBranchCoalescing::runOnMachineFunction(MachineFunction &MF) {
if (!canCoalesceBranch(Cand2))
break;
- // Sanity check
// The branch-taken block of the second candidate should post-dominate the
- // first candidate
+ // first candidate.
assert(MPDT->dominates(Cand2.BranchTargetBlock, Cand1.BranchBlock) &&
"Branch-taken block should post-dominate first candidate");
More information about the llvm-commits
mailing list