[llvm-branch-commits] [llvm] [ProfCheck][Matrix] Add profile data where relevant (PR #181292)
Aiden Grossman via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Thu Feb 12 21:11:00 PST 2026
================
@@ -42,7 +49,15 @@ BasicBlock *TileInfo::CreateLoop(BasicBlock *Preheader, BasicBlock *Exit,
B.SetInsertPoint(Latch);
Value *Inc = B.CreateAdd(IV, Step, Name + ".step");
Value *Cond = B.CreateICmpNE(Inc, Bound, Name + ".cond");
- BranchInst::Create(Header, Exit, Cond, Latch);
+ auto *BR = BranchInst::Create(Header, Exit, Cond, Latch);
+ if (!ProfcheckDisableMetadataFixes) {
+ assert(Step->getZExtValue() != 0 &&
+ "Expected a non-zero step size. A step size of zero produces an "
----------------
boomanaiden154 wrote:
Updated the wording to something that is hopefully more reasonable. Let me know what you think.
https://github.com/llvm/llvm-project/pull/181292
More information about the llvm-branch-commits
mailing list