[llvm] 5a40bc2 - [NFC] Fix typo in function name `generatedUnsignedRemainderCode` (#110743)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 2 06:05:44 PDT 2024
Author: Rahul Joshi
Date: 2024-10-02T06:05:41-07:00
New Revision: 5a40bc23835d2468b4b6cbc4631035bd4dab31fa
URL: https://github.com/llvm/llvm-project/commit/5a40bc23835d2468b4b6cbc4631035bd4dab31fa
DIFF: https://github.com/llvm/llvm-project/commit/5a40bc23835d2468b4b6cbc4631035bd4dab31fa.diff
LOG: [NFC] Fix typo in function name `generatedUnsignedRemainderCode` (#110743)
Rename `generatedUnsignedRemainderCode` to
`generateUnsignedRemainderCode`.
Added:
Modified:
llvm/lib/Transforms/Utils/IntegerDivision.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Utils/IntegerDivision.cpp b/llvm/lib/Transforms/Utils/IntegerDivision.cpp
index cea095408b0c39..11956816a6ec3f 100644
--- a/llvm/lib/Transforms/Utils/IntegerDivision.cpp
+++ b/llvm/lib/Transforms/Utils/IntegerDivision.cpp
@@ -70,8 +70,8 @@ static Value *generateSignedRemainderCode(Value *Dividend, Value *Divisor,
/// code generated, e.g. at the urem instruction. This will generate a udiv in
/// the process, and Builder's insert point will be pointing at the udiv (if
/// present, i.e. not folded), ready to be expanded if the user wishes
-static Value *generatedUnsignedRemainderCode(Value *Dividend, Value *Divisor,
- IRBuilder<> &Builder) {
+static Value *generateUnsignedRemainderCode(Value *Dividend, Value *Divisor,
+ IRBuilder<> &Builder) {
// Remainder = Dividend - Quotient*Divisor
// Following instructions are generated for both i32 and i64
@@ -381,9 +381,8 @@ bool llvm::expandRemainder(BinaryOperator *Rem) {
Rem = BO;
}
- Value *Remainder = generatedUnsignedRemainderCode(Rem->getOperand(0),
- Rem->getOperand(1),
- Builder);
+ Value *Remainder = generateUnsignedRemainderCode(Rem->getOperand(0),
+ Rem->getOperand(1), Builder);
Rem->replaceAllUsesWith(Remainder);
Rem->dropAllReferences();
More information about the llvm-commits
mailing list