diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2025-04-02 00:03:43 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-02 00:03:43 +0700 |
commit | f60eed934493c2d0305d4d597d39813a12db42ef (patch) | |
tree | 304136313926167b1bb7efae776fb4b69469b955 /llvm/tools/llvm-reduce/DeltaManager.cpp | |
parent | 25622aa745671d8d1885250f559c6dac0a8c2aeb (diff) | |
download | llvm-f60eed934493c2d0305d4d597d39813a12db42ef.zip llvm-f60eed934493c2d0305d4d597d39813a12db42ef.tar.gz llvm-f60eed934493c2d0305d4d597d39813a12db42ef.tar.bz2 |
llvm-reduce: Add target-features-attr reduction (#133887)
Try to reduce individual subtarget features in the "target-features"
attribute. This attempts a textual removal of the fields in the string,
not a semantic removal. Typically there's a lot of redundant feature spam
in the feature list implied by the target-cpu (which I really wish clang
would stop emitting). If we could parse these out, we could easily drop
the fields without testing anything.
Diffstat (limited to 'llvm/tools/llvm-reduce/DeltaManager.cpp')
-rw-r--r-- | llvm/tools/llvm-reduce/DeltaManager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/tools/llvm-reduce/DeltaManager.cpp b/llvm/tools/llvm-reduce/DeltaManager.cpp index 5281b1d..74c1f1b 100644 --- a/llvm/tools/llvm-reduce/DeltaManager.cpp +++ b/llvm/tools/llvm-reduce/DeltaManager.cpp @@ -45,6 +45,7 @@ #include "deltas/ReduceRegisterMasks.h" #include "deltas/ReduceRegisterUses.h" #include "deltas/ReduceSpecialGlobals.h" +#include "deltas/ReduceTargetFeaturesAttr.h" #include "deltas/ReduceUsingSimplifyCFG.h" #include "deltas/ReduceVirtualRegisters.h" #include "deltas/RunIRPasses.h" |