[llvm] [SCEV] Improve code around constant TC (NFC) (PR #133261)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 6 14:29:27 PDT 2025
================
@@ -8225,7 +8225,7 @@ static unsigned getConstantTripCount(const SCEVConstant *ExitCount) {
ConstantInt *ExitConst = ExitCount->getValue();
// Guard against huge trip counts.
- if (ExitConst->getValue().getActiveBits() > 32)
+ if (ExitConst->getValue().getActiveBits() > CHAR_BIT * sizeof(unsigned))
----------------
nikic wrote:
Keep the 32 here please.
https://github.com/llvm/llvm-project/pull/133261
More information about the llvm-commits
mailing list