================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to