[all-commits] [llvm/llvm-project] db7a2f: Precommit transform tests that have poison as inse...

Juneyoung Lee via All-commits all-commits at lists.llvm.org
Wed Dec 23 18:51:06 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: db7a2f347f132b3920415013d62d1adfb18d8d58
      https://github.com/llvm/llvm-project/commit/db7a2f347f132b3920415013d62d1adfb18d8d58
  Author: Juneyoung Lee <aqjune at gmail.com>
  Date:   2020-12-24 (Thu, 24 Dec 2020)

  Changed paths:
    A llvm/test/Transforms/Attributor/dereferenceable-2-inseltpoison.ll
    A llvm/test/Transforms/BDCE/vectors-inseltpoison.ll
    A llvm/test/Transforms/CodeGenPrepare/AArch64/gather-scatter-opt-inseltpoison.ll
    A llvm/test/Transforms/CodeGenPrepare/AMDGPU/bypass-slow-div-debug-info-inseltpoison.ll
    A llvm/test/Transforms/CodeGenPrepare/ARM/sink-add-mul-shufflevector-inseltpoison.ll
    A llvm/test/Transforms/CodeGenPrepare/ARM/sinkchain-inseltpoison.ll
    A llvm/test/Transforms/CodeGenPrepare/X86/gather-scatter-opt-inseltpoison.ll
    A llvm/test/Transforms/CodeGenPrepare/X86/sink-addrmode-inseltpoison.ll
    A llvm/test/Transforms/CodeGenPrepare/X86/vec-shift-inseltpoison.ll
    A llvm/test/Transforms/CodeGenPrepare/X86/x86-shuffle-sink-inseltpoison.ll
    A llvm/test/Transforms/GVN/2016-08-30-MaskedScatterGather-inseltpoison.ll
    A llvm/test/Transforms/GVN/constexpr-vector-constainsundef-crash-inseltpoison.ll
    A llvm/test/Transforms/GVN/non-integral-pointers-inseltpoison.ll
    A llvm/test/Transforms/InferAddressSpaces/AMDGPU/old-pass-regressions-inseltpoison.ll
    A llvm/test/Transforms/InferFunctionAttrs/dereferenceable-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/AArch64/sve-bitcast-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/AMDGPU/amdgcn-demanded-vector-elts-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/X86/x86-addsub-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/X86/x86-avx512-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/X86/x86-pack-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/X86/x86-sse-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/X86/x86-sse2-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/X86/x86-sse41-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/X86/x86-vec_demanded_elts-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/X86/x86-vector-shifts-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/X86/x86-xop-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/bitcast-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/bitcast-vec-canon-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/broadcast-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/extractelement-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/fold-vector-zero-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/icmp-bc-vec-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/inselt-binop-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/insert-extract-shuffle-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/masked_intrinsics-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/pr38984-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/scalarization-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/select-extractelement-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/shift-add-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/shufflevector-div-rem-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/trunc-extractelement-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/udiv-pow2-vscale-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/vec_demanded_elts-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/vec_extract_var_elt-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/vec_gep_scalar_arg-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/vec_phi_extract-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/vec_shuffle-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/vector-casts-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/vector_gep1-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/vector_insertelt_shuffle-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/vscale_extractelement-inseltpoison.ll
    A llvm/test/Transforms/InstCombine/vscale_insertelement-inseltpoison.ll
    A llvm/test/Transforms/InstSimplify/ConstProp/InsertElement-inseltpoison.ll
    A llvm/test/Transforms/InstSimplify/ConstProp/vscale-inseltpoison.ll
    A llvm/test/Transforms/InstSimplify/ConstProp/vscale-shufflevector-inseltpoison.ll
    A llvm/test/Transforms/InstSimplify/select-inseltpoison.ll
    A llvm/test/Transforms/InstSimplify/vscale-inseltpoison.ll
    A llvm/test/Transforms/LoadStoreVectorizer/AMDGPU/selects-inseltpoison.ll
    A llvm/test/Transforms/LoadStoreVectorizer/X86/load-width-inseltpoison.ll
    A llvm/test/Transforms/LoadStoreVectorizer/X86/vectorize-i8-nested-add-inseltpoison.ll
    A llvm/test/Transforms/LoopStrengthReduce/ARM/vctp-chains-inseltpoison.ll
    A llvm/test/Transforms/LoopUnroll/PowerPC/p8-unrolling-legalize-vectors-inseltpoison.ll
    A llvm/test/Transforms/NewGVN/2016-08-30-MaskedScatterGather-xfail-inseltpoison.ll
    A llvm/test/Transforms/PGOProfile/counter_promo_nest-inseltpoison.ll
    A llvm/test/Transforms/PhaseOrdering/X86/addsub-inseltpoison.ll
    A llvm/test/Transforms/PhaseOrdering/X86/horiz-math-inseltpoison.ll
    A llvm/test/Transforms/PhaseOrdering/X86/scalarization-inseltpoison.ll
    A llvm/test/Transforms/PhaseOrdering/vector-trunc-inseltpoison.ll
    A llvm/test/Transforms/RewriteStatepointsForGC/base-vector-inseltpoison.ll
    A llvm/test/Transforms/RewriteStatepointsForGC/check_traversal_order-inseltpoison.ll
    A llvm/test/Transforms/RewriteStatepointsForGC/live-vector-nosplit-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/AArch64/accelerate-vector-functions-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/AArch64/insertelement-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/AArch64/transpose-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/AMDGPU/add_sub_sat-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/AMDGPU/bswap-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/AMDGPU/round-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/ARM/extract-insert-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/NVPTX/non-vectorizable-intrinsic-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/PR35865-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/alternate-calls-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/alternate-cast-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/alternate-fp-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/alternate-int-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/arith-fp-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/blending-shuffle-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/cmp_commute-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/crash_scheduling-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/external_user_jumbled_load-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/extract-shuffle-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/fptosi-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/hadd-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/hsub-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/insert-element-build-vector-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/load-merge-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/pr31599-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/pr42022-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/pr44067-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/pr47629-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/sext-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/sign-extend-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/sitofp-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/value-bug-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/vec_list_bias-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/X86/zext-inseltpoison.ll
    A llvm/test/Transforms/SLPVectorizer/vectorizable-functions-inseltpoison.ll
    A llvm/test/Transforms/Scalarizer/basic-inseltpoison.ll
    A llvm/test/Transforms/Scalarizer/dbgloc-bug-inseltpoison.ll
    A llvm/test/Transforms/Scalarizer/order-bug-inseltpoison.ll
    A llvm/test/Transforms/SimplifyCFG/ARM/speculate-vector-ops-inseltpoison.ll
    A llvm/test/Transforms/SimplifyCFG/speculate-vector-ops-inseltpoison.ll
    A llvm/test/Transforms/SpeculativeExecution/spec-other-inseltpoison.ll
    A llvm/test/Transforms/StructurizeCFG/rebuild-ssa-infinite-loop-inseltpoison.ll
    A llvm/test/Transforms/VectorCombine/AMDGPU/as-transition-inseltpoison.ll
    A llvm/test/Transforms/VectorCombine/Hexagon/load-inseltpoison.ll
    A llvm/test/Transforms/VectorCombine/X86/extract-binop-inseltpoison.ll
    A llvm/test/Transforms/VectorCombine/X86/insert-binop-inseltpoison.ll
    A llvm/test/Transforms/VectorCombine/X86/insert-binop-with-constant-inseltpoison.ll
    A llvm/test/Transforms/VectorCombine/X86/load-inseltpoison.ll
    A llvm/test/Transforms/VectorCombine/X86/scalarize-cmp-inseltpoison.ll

  Log Message:
  -----------
  Precommit transform tests that have poison as insertelement's placeholder

This commit copies existing tests at llvm/Transforms and replaces
'insertelement undef' in those files with 'insertelement poison'.
(see https://reviews.llvm.org/D93586)

Tests listed using this script:

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

Tests updated:

file_org=llvm/test/Transforms/$1
file=${file_org%.ll}-inseltpoison.ll
cp $file_org $file
sed -i -E 's/^([^;]*)insertelement <(.*)> undef/\1insertelement <\2> 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"
  # I manually updated the script
  exit 1
fi
python3 ./llvm/utils/update_test_checks.py --opt-binary=./build-releaseassert/bin/opt $file




More information about the All-commits mailing list