[llvm] 6b94058 - [ConstraintElim] Update comment after recent changes.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 5 04:19:25 PST 2022
Author: Florian Hahn
Date: 2022-12-05T12:19:09Z
New Revision: 6b940588a0fc77e60a61dc5e9a2fdcca1c1109e1
URL: https://github.com/llvm/llvm-project/commit/6b940588a0fc77e60a61dc5e9a2fdcca1c1109e1
DIFF: https://github.com/llvm/llvm-project/commit/6b940588a0fc77e60a61dc5e9a2fdcca1c1109e1.diff
LOG: [ConstraintElim] Update comment after recent changes.
Update the comment to reflect the current code.
Added:
Modified:
llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp b/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
index dd0abe223afa..b77030d7fb22 100644
--- a/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/ConstraintElimination.cpp
@@ -289,10 +289,9 @@ decomposeGEP(GetElementPtrInst &GEP,
return Result;
}
-// Decomposes \p V into a vector of entries of the form { Coefficient, Variable
-// } where Coefficient * Variable. The sum of the pairs equals \p V. The first
-// pair is the constant-factor and X must be nullptr. If the expression cannot
-// be decomposed, returns an empty vector.
+// Decomposes \p V into a constant offset + list of pairs { Coefficient,
+// Variable } where Coefficient * Variable. The sum of the constant offset and
+// pairs equals \p V.
static Decomposition decompose(Value *V,
SmallVectorImpl<PreconditionTy> &Preconditions,
bool IsSigned, const DataLayout &DL) {
More information about the llvm-commits
mailing list