[llvm] [ConstantInt] Add ImplicitTrunc parameter to getSigned() (NFC) (PR #172875)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 18 09:31:33 PST 2025
================
@@ -1105,8 +1105,8 @@ void StraightLineStrengthReduce::allocateCandidatesAndFindBasisForGEP(
uint64_t ElementSize = GTI.getSequentialElementStride(*DL);
IntegerType *PtrIdxTy = cast<IntegerType>(DL->getIndexType(GEP->getType()));
// If the element size overflows the type, truncate.
- ConstantInt *ElementSizeIdx = ConstantInt::get(
- PtrIdxTy, ElementSize, /*IsSigned=*/true, /*ImplicitTrunc=*/true);
+ ConstantInt *ElementSizeIdx =
+ ConstantInt::getSigned(PtrIdxTy, ElementSize, /*ImplicitTrunc=*/true);
----------------
dtcxzyw wrote:
Is this change related to the whole PR?
https://github.com/llvm/llvm-project/pull/172875
More information about the llvm-commits
mailing list