[llvm] [profcheck] Fix profile metadata in IntegerDivision/ExpandIRinsts (PR #173114)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 31 20:51:24 PST 2025


================
@@ -298,7 +355,15 @@ static Value *generateUnsignedDivisionCode(Value *Dividend, Value *Divisor,
   Value *R     = Builder.CreateSub(Tmp7, Tmp11);
   Value *SR_2  = Builder.CreateAdd(SR_3, NegOne);
   Value *Tmp12 = Builder.CreateICmpEQ(SR_2, Zero);
-  Builder.CreateCondBr(Tmp12, LoopExit, DoWhile);
+  // The loop implements the core bit-by-bit binary long division algorithm.
+  // The branch is unlikely to exit the loop early until processed all
----------------
boomanaiden154 wrote:

Nit: `s/until processed/until it has processed/`

https://github.com/llvm/llvm-project/pull/173114


More information about the llvm-commits mailing list