Skip to content

Commit 9c2cc07

Browse files
committed
Set flag default to false, add TODO
1 parent d34d4ed commit 9c2cc07

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ static cl::opt<bool> EnableEarlyExitVectorization(
394394
"Enable vectorization of early exit loops with uncountable exits."));
395395

396396
static cl::opt<bool> ConsiderRegPressure(
397-
"vectorizer-consider-reg-pressure", cl::init(true), cl::Hidden,
397+
"vectorizer-consider-reg-pressure", cl::init(false), cl::Hidden,
398398
cl::desc("Discard VFs if their register pressure is too high."));
399399

400400
// Likelyhood of bypassing the vectorized loop because there are zero trips left
@@ -3700,6 +3700,8 @@ bool LoopVectorizationCostModel::shouldConsiderRegPressureForVF(
37003700
if (ConsiderRegPressure.getNumOccurrences())
37013701
return ConsiderRegPressure;
37023702

3703+
// TODO: We should eventually consider register pressure for all targets. The
3704+
// TTI hook is temporary whilst target-specific issues are being fixed.
37033705
if (TTI.shouldConsiderVectorizationRegPressure())
37043706
return true;
37053707

0 commit comments

Comments
 (0)