SuccessChanges

Summary

  1. [LLD][ELF] - Use LLVM_ELF_IMPORT_TYPES_ELFT instead of multiple types definitions. NFCI. (details)
  2. Precommit tests that have poison as shufflevector's placeholder (details)
Commit ed146d6291ce510ef954d350e2ca5a107890c2d2 by grimar
[LLD][ELF] - Use LLVM_ELF_IMPORT_TYPES_ELFT instead of multiple types definitions. NFCI.

We can reduce the number of "using" declarations.
`LLVM_ELF_IMPORT_TYPES_ELFT` was extended in D93801.

Differential revision: https://reviews.llvm.org/D93856
The file was modifiedlld/ELF/InputFiles.h
The file was modifiedlld/ELF/SyntheticSections.h
The file was modifiedlld/ELF/Writer.cpp
Commit ae6e89327b04a94b6d1a2533c598ec6be60eb922 by aqjune
Precommit tests that have poison as shufflevector's placeholder

This commit copies existing tests at llvm/Transforms containing
'shufflevector X, undef' and replaces them with 'shufflevector X, poison'.
The new copied tests have *-inseltpoison.ll suffix at its file name
(as db7a2f347f132b3920415013d62d1adfb18d8d58 did)
See https://reviews.llvm.org/D93793

Test files listed using

grep -R -E "^[^;]*shufflevector <.*> .*, <.*> undef" | cut -d":" -f1 | uniq

Test files copied & updated using

file_org=llvm/test/Transforms/$1
if [[ "$file_org" = *-inseltpoison.ll ]]; then
  file=$file_org
else
  file=${file_org%.ll}-inseltpoison.ll
  if [ ! -f $file ]; then
    cp $file_org $file
  fi
fi
sed -i -E 's/^([^;]*)shufflevector <(.*)> (.*), <(.*)> undef/\1shufflevector <\2> \3, <\4> poison/g' $file
head -1 $file | grep "Assertions have been autogenerated by utils/update_test_checks.py" -q
if [ "$?" == 1 ]; then
  echo "$file : should be manually updated"
  # The test is manually updated
  exit 1
fi
python3 ./llvm/utils/update_test_checks.py --opt-binary=./build-releaseassert/bin/opt $file
The file was modifiedllvm/test/Transforms/CodeGenPrepare/X86/vec-shift-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstCombine/X86/x86-addsub-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstCombine/vec_phi_extract-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstCombine/extractelement-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstCombine/icmp-bc-vec-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/mul-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/assume-inseltpoison.ll
The file was addedllvm/test/Transforms/VectorCombine/X86/no-sse-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/shufflevec-constant-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstCombine/masked_intrinsics-inseltpoison.ll
The file was addedllvm/test/Transforms/InterleavedAccess/ARM/interleaved-accesses-extract-user-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstCombine/insert-extract-shuffle-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/shufflevec-bitcast-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstCombine/X86/x86-vector-shifts-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/pr2645-0-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/vec-binop-select-inseltpoison.ll
The file was modifiedllvm/test/Transforms/Scalarizer/dbgloc-bug-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/X86/x86-avx2-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstCombine/trunc-extractelement-inseltpoison.ll
The file was addedllvm/test/Transforms/InterleavedAccess/ARM/interleaved-accesses-inseltpoison.ll
The file was modifiedllvm/test/Transforms/LoopStrengthReduce/ARM/vctp-chains-inseltpoison.ll
The file was addedllvm/test/Transforms/LoopUnroll/X86/pr46430-inseltpoison.ll
The file was addedllvm/test/Transforms/PhaseOrdering/X86/shuffle-inseltpoison.ll
The file was addedllvm/test/Transforms/Inline/inlined-loop-metadata-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/X86/x86-f16c-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/trunc-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/vector-concat-binop-inseltpoison.ll
The file was addedllvm/test/Transforms/InterleavedAccess/X86/interleaved-accesses-64bits-avx-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstCombine/AMDGPU/amdgcn-demanded-vector-elts-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/X86/shufflemask-undef-inseltpoison.ll
The file was addedllvm/test/Transforms/VectorCombine/X86/shuffle-inseltpoison.ll
The file was addedllvm/test/Transforms/Scalarizer/phi-bug-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/obfuscated_splat-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/shuffle_select-inseltpoison.ll
The file was addedllvm/test/Transforms/InterleavedAccess/AArch64/interleaved-accesses-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/type_pun-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/logical-select-inseltpoison.ll
The file was addedllvm/test/Transforms/CodeGenPrepare/ARM/sink-free-instructions-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstCombine/vec_gep_scalar_arg-inseltpoison.ll
The file was addedllvm/test/Transforms/CodeGenPrepare/X86/cgp_shuffle_crash-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstCombine/vec_shuffle-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/shuffle-cast-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstCombine/vector_gep1-inseltpoison.ll
The file was modifiedllvm/test/Transforms/CodeGenPrepare/ARM/sink-add-mul-shufflevector-inseltpoison.ll
The file was addedllvm/test/Transforms/LoopStrengthReduce/AMDGPU/lsr-void-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/icmp-vec-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstCombine/shufflevector-div-rem-inseltpoison.ll
The file was addedllvm/test/Transforms/InterleavedAccess/AArch64/interleaved-accesses-extract-user-inseltpoison.ll
The file was addedllvm/test/Transforms/InstSimplify/shufflevector-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/X86/x86-vpermil-inseltpoison.ll
The file was addedllvm/test/Transforms/InterleavedAccess/X86/interleavedLoad-inseltpoison.ll
The file was modifiedllvm/test/Transforms/CodeGenPrepare/X86/gather-scatter-opt-inseltpoison.ll
The file was addedllvm/test/Transforms/DeadStoreElimination/masked-dead-store-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/shuffle-select-narrow-inseltpoison.ll
The file was addedllvm/test/Transforms/LoopSimplify/do-preheader-dbg-inseltpoison.ll
The file was addedllvm/test/Transforms/VectorCombine/AArch64/vscale-bitcast-shuffle-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/nsw-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstCombine/scalarization-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstSimplify/ConstProp/vscale-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/X86/x86-pshufb-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstSimplify/vscale-inseltpoison.ll
The file was addedllvm/test/Transforms/InterleavedAccess/X86/interleavedStore-inseltpoison.ll
The file was modifiedllvm/test/Transforms/Scalarizer/basic-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstCombine/shift-add-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstCombine/vec_demanded_elts-inseltpoison.ll
The file was modifiedllvm/test/Transforms/CodeGenPrepare/ARM/sinkchain-inseltpoison.ll
The file was addedllvm/test/Transforms/InstSimplify/ConstProp/vector-undef-elts-inseltpoison.ll
The file was addedllvm/test/Transforms/CodeGenPrepare/AArch64/sink-free-instructions-inseltpoison.ll
The file was modifiedllvm/test/Transforms/SpeculativeExecution/spec-other-inseltpoison.ll
The file was modifiedllvm/test/Transforms/LoopUnroll/PowerPC/p8-unrolling-legalize-vectors-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstCombine/select-extractelement-inseltpoison.ll
The file was modifiedllvm/test/Transforms/CodeGenPrepare/AArch64/gather-scatter-opt-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/bswap-inseltpoison.ll
The file was addedllvm/test/Transforms/InterleavedAccess/AArch64/binopshuffles-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/X86/x86-muldq-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstCombine/vscale_insertelement-inseltpoison.ll
The file was modifiedllvm/test/Transforms/CodeGenPrepare/X86/x86-shuffle-sink-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/sub-of-negatible-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/X86/x86-sse4a-inseltpoison.ll
The file was addedllvm/test/Transforms/InstCombine/fmul-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstCombine/X86/x86-pack-inseltpoison.ll
The file was modifiedllvm/test/Transforms/Scalarizer/order-bug-inseltpoison.ll
The file was modifiedllvm/test/Transforms/InstCombine/vscale_extractelement-inseltpoison.ll
The file was modifiedllvm/test/Transforms/PhaseOrdering/X86/scalarization-inseltpoison.ll