[llvm] 93ce855 - 2nd attempt at a speculative fix for windows builders after d4648eea
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 22 10:33:08 PDT 2021
Author: Philip Reames
Date: 2021-03-22T10:32:57-07:00
New Revision: 93ce855d4b7b38fcf4d7c60dd282b407dc2549a3
URL: https://github.com/llvm/llvm-project/commit/93ce855d4b7b38fcf4d7c60dd282b407dc2549a3
DIFF: https://github.com/llvm/llvm-project/commit/93ce855d4b7b38fcf4d7c60dd282b407dc2549a3.diff
LOG: 2nd attempt at a speculative fix for windows builders after d4648eea
Added:
Modified:
llvm/lib/Analysis/ScalarEvolution.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 69ed54653be0..e8f0e242ef42 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -5699,7 +5699,7 @@ getRangeForUnknownRecurrence(const SCEVUnknown *U) {
// Compute total shift amount, being careful of overflow and bitwidths.
auto MaxShiftAmt = KnownStep.getMaxValue();
- APInt TCAP(BitWidth, TC-1, false);
+ APInt TCAP(BitWidth, TC-1);
bool Overflow = false;
auto TotalShift = MaxShiftAmt.umul_ov(TCAP, Overflow);
if (Overflow)
More information about the llvm-commits
mailing list