aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-reduce/DeltaManager.cpp
diff options
context:
space:
mode:
authorMatt Arsenault <Matthew.Arsenault@amd.com>2022-11-22 16:55:44 -0500
committerMatt Arsenault <arsenm2@gmail.com>2023-01-17 22:33:57 -0500
commitbc3e492323f34eb92f49897d22468aef2d831d5a (patch)
tree32b4b06a34987684daa939eb7fab8f064a7410fb /llvm/tools/llvm-reduce/DeltaManager.cpp
parente7cd42f8e4da1beed52f401dcf87d22d36a2c81c (diff)
downloadllvm-bc3e492323f34eb92f49897d22468aef2d831d5a.zip
llvm-bc3e492323f34eb92f49897d22468aef2d831d5a.tar.gz
llvm-bc3e492323f34eb92f49897d22468aef2d831d5a.tar.bz2
llvm-reduce: Reduce ifuncs
Reduce by calling the resolver function at the use site, and inserting an indirect call. Try to delete if there are no uses left over. We should also probably try to do something about constantexpr uses; perhaps treat them like aliases.
Diffstat (limited to 'llvm/tools/llvm-reduce/DeltaManager.cpp')
-rw-r--r--llvm/tools/llvm-reduce/DeltaManager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/llvm-reduce/DeltaManager.cpp b/llvm/tools/llvm-reduce/DeltaManager.cpp
index 57e8175..6c46767 100644
--- a/llvm/tools/llvm-reduce/DeltaManager.cpp
+++ b/llvm/tools/llvm-reduce/DeltaManager.cpp
@@ -75,6 +75,7 @@ static cl::list<std::string>
DELTA_PASS("function-bodies", reduceFunctionBodiesDeltaPass) \
DELTA_PASS("special-globals", reduceSpecialGlobalsDeltaPass) \
DELTA_PASS("aliases", reduceAliasesDeltaPass) \
+ DELTA_PASS("ifuncs", reduceIFuncsDeltaPass) \
DELTA_PASS("simplify-conditionals-true", reduceConditionalsTrueDeltaPass) \
DELTA_PASS("simplify-conditionals-false", reduceConditionalsFalseDeltaPass)\
DELTA_PASS("invokes", reduceInvokesDeltaPass) \