Skip to content

Commit

Permalink
[InstCombine] Increase limit for max copied from constant fold
Browse files Browse the repository at this point in the history
Increasing the limits fixes several performance regressions.

Differential revision: https://reviews.llvm.org/D144032
  • Loading branch information
bcahoon committed Feb 14, 2023
1 parent 0d4e55b commit 20cdf7c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -32,7 +32,7 @@ STATISTIC(NumDeadStore, "Number of dead stores eliminated");
STATISTIC(NumGlobalCopies, "Number of allocas copied from constant global");

static cl::opt<unsigned> MaxCopiedFromConstantUsers(
"instcombine-max-copied-from-constant-users", cl::init(128),
"instcombine-max-copied-from-constant-users", cl::init(300),
cl::desc("Maximum users to visit in copy from constant transform"),
cl::Hidden);

Expand Down

0 comments on commit 20cdf7c

Please sign in to comment.