[llvm] [clang] [LLVM][IR] Add native vector support to ConstantInt & ConstantFP. (PR #74502)
Paul Walker via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 5 12:48:31 PST 2023
================
@@ -343,7 +343,7 @@ static bool verifyTripCount(Value *RHS, Loop *L,
// If the RHS of the compare is equal to the backedge taken count we need
// to add one to get the trip count.
if (SCEVRHS == BackedgeTCExt || SCEVRHS == BackedgeTakenCount) {
- ConstantInt *One = ConstantInt::get(ConstantRHS->getType(), 1);
+ ConstantInt *One = ConstantInt::get(ConstantRHS->getIntegerType(), 1);
----------------
paulwalker-arm wrote:
Could it be `static ConstantInt *get(IntegerType *Ty, uint64_t V, bool IsSigned = false);`?
I don't think I made this change up. I wanted a mechanical change so just removed the overload and the compiler told me all the places that relied on it.
https://github.com/llvm/llvm-project/pull/74502
More information about the cfe-commits
mailing list