[llvm] 0782d97 - llvm-reduce: Account for initializer complexity
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 19 17:35:36 PST 2023
Author: Matt Arsenault
Date: 2023-01-19T21:35:27-04:00
New Revision: 0782d97ff56ad1633021e62f38d59f68ee093d37
URL: https://github.com/llvm/llvm-project/commit/0782d97ff56ad1633021e62f38d59f68ee093d37
DIFF: https://github.com/llvm/llvm-project/commit/0782d97ff56ad1633021e62f38d59f68ee093d37.diff
LOG: llvm-reduce: Account for initializer complexity
Added:
Modified:
llvm/tools/llvm-reduce/ReducerWorkItem.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-reduce/ReducerWorkItem.cpp b/llvm/tools/llvm-reduce/ReducerWorkItem.cpp
index 635bd7e67d47..779d45f86df7 100644
--- a/llvm/tools/llvm-reduce/ReducerWorkItem.cpp
+++ b/llvm/tools/llvm-reduce/ReducerWorkItem.cpp
@@ -706,7 +706,7 @@ uint64_t ReducerWorkItem::computeIRComplexityScore() const {
++Score;
if (GV.hasInitializer())
- ++Score;
+ Score += classifyReductivePower(GV.getInitializer());
// TODO: Account for linkage?
More information about the llvm-commits
mailing list