Skip to content

Conversation

@arsenm
Copy link
Contributor

@arsenm arsenm commented Apr 1, 2025

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.

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.
@arsenm arsenm added the llvm-reduce label Apr 1, 2025 — with Graphite App
Copy link
Contributor Author

arsenm commented Apr 1, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@arsenm arsenm requested review from aeubanks, asb, fhahn and regehr April 1, 2025 09:25
@arsenm arsenm marked this pull request as ready for review April 1, 2025 09:25
Copy link
Contributor Author

arsenm commented Apr 1, 2025

Merge activity

  • Apr 1, 1:01 PM EDT: A user started a stack merge that includes this pull request via Graphite.
  • Apr 1, 1:03 PM EDT: A user merged this pull request with Graphite.
@arsenm arsenm merged commit f60eed9 into main Apr 1, 2025
14 of 15 checks passed
@arsenm arsenm deleted the users/arsenm/llvm-reduce/add-reduce-target-features-attr-reduction branch April 1, 2025 17:03
@llvm-ci
Copy link
Collaborator

llvm-ci commented Apr 1, 2025

LLVM Buildbot has detected a new failure on builder clang-aarch64-sve-vla running on linaro-g3-04 while building llvm at step 7 "ninja check 1".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/17/builds/6934

Here is the relevant piece of the build log for the reference
Step 7 (ninja check 1) failure: stage 1 checked (failure) ... [165/173] Linking CXX static library /home/tcwg-buildbot/worker/clang-aarch64-sve-vla/stage1/lib/libllvm_gtest_main.a [166/173] Linking CXX executable flang-rt/unittests/Runtime/RuntimeTests [167/173] Generating FuzzerTestObjects.FuzzerUnittest.cpp.aarch64.o [168/173] Generating GwpAsanTestObjects.gtest-all.cc.aarch64.o [169/173] Generating FuzzerTestObjects.gtest-all.cc.aarch64.o [170/173] Generating GwpAsan-aarch64-Test [171/173] Generating Fuzzer-aarch64-Test [172/173] Generating FuzzedDataProviderTestObjects.gtest-all.cc.aarch64.o [173/173] Generating FuzzerUtils-aarch64-Test [881/1386] Linking CXX executable unittests/DebugInfo/MSF/DebugInfoMSFTests FAILED: unittests/DebugInfo/MSF/DebugInfoMSFTests : && /usr/local/bin/c++ -mcpu=neoverse-512tvb -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fuse-ld=lld -Wl,--color-diagnostics -Wl,--gc-sections unittests/DebugInfo/MSF/CMakeFiles/DebugInfoMSFTests.dir/MappedBlockStreamTest.cpp.o unittests/DebugInfo/MSF/CMakeFiles/DebugInfoMSFTests.dir/MSFBuilderTest.cpp.o unittests/DebugInfo/MSF/CMakeFiles/DebugInfoMSFTests.dir/MSFCommonTest.cpp.o -o unittests/DebugInfo/MSF/DebugInfoMSFTests lib/libLLVMDebugInfoMSF.a lib/libLLVMSupport.a lib/libllvm_gtest_main.a lib/libllvm_gtest.a lib/libLLVMTestingSupport.a lib/libllvm_gtest.a lib/libLLVMSupport.a -lrt -ldl -lm /usr/lib/aarch64-linux-gnu/libz.so lib/libLLVMDemangle.a -lpthread && : clang++: error: no such file or directory: 'lib/libllvm_gtest.a' clang++: error: no such file or directory: 'lib/libllvm_gtest.a' [895/1386] Building CXX object tools/flang/unittests/Optimizer/CMakeFiles/FlangOptimizerTests.dir/Builder/Runtime/ReductionTest.cpp.o [897/1386] Building CXX object tools/flang/unittests/Optimizer/CMakeFiles/FlangOptimizerTests.dir/Builder/FIRBuilderTest.cpp.o [898/1386] Building CXX object tools/flang/unittests/Frontend/CMakeFiles/FlangFrontendTests.dir/CodeGenActionTest.cpp.o ninja: build stopped: subcommand failed. 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

4 participants