Skip to content

Commit

Permalink
[SLP] Increase UsesLimit to 64 (llvm#99467)
Browse files Browse the repository at this point in the history
Since commit 82b800e addressed the
issue llvm#99327 , we see some performance regression (13%) on some
verilator generated C++ code. This is because the UsesLimit is set to 8,
which is too small for the verilator generated code. I have analyzed the
need for the UsesLimit from [1] and found that the UsesLimit should be
at least 64 to cover most of these cases. Thus, This patch increases the
UsesLimit to 64.

Link:
llvm#99327 (comment)
[1]

Signed-off-by: Yangyu Chen <[email protected]>
  • Loading branch information
cyyself authored Jul 19, 2024
1 parent 7d8375b commit 007aa6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ static const unsigned AliasedCheckLimit = 10;

// Limit of the number of uses for potentially transformed instructions/values,
// used in checks to avoid compile-time explode.
static constexpr int UsesLimit = 8;
static constexpr int UsesLimit = 64;

// Another limit for the alias checks: The maximum distance between load/store
// instructions where alias checks are done.
Expand Down

0 comments on commit 007aa6d

Please sign in to comment.