[all-commits] [llvm/llvm-project] c22dc7: [CodeGen][X86] Remove unused trivial check-prefixe...

Pengfei Wang via All-commits all-commits at lists.llvm.org
Sun Nov 15 18:08:13 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c22dc71b120b066c0066b8517014149a001cc2b0
      https://github.com/llvm/llvm-project/commit/c22dc71b120b066c0066b8517014149a001cc2b0
  Author: Wang, Pengfei <pengfei.wang at intel.com>
  Date:   2020-11-16 (Mon, 16 Nov 2020)

  Changed paths:
    M llvm/test/CodeGen/X86/8bit_cmov_of_trunc_promotion.ll
    M llvm/test/CodeGen/X86/GlobalISel/legalize-add-v128.mir
    M llvm/test/CodeGen/X86/GlobalISel/legalize-add-v256.mir
    M llvm/test/CodeGen/X86/GlobalISel/legalize-add-v512.mir
    M llvm/test/CodeGen/X86/GlobalISel/legalize-add.mir
    M llvm/test/CodeGen/X86/GlobalISel/legalize-brcond.mir
    M llvm/test/CodeGen/X86/GlobalISel/legalize-constant.mir
    M llvm/test/CodeGen/X86/GlobalISel/legalize-ext.mir
    M llvm/test/CodeGen/X86/GlobalISel/legalize-insert-vec256.mir
    M llvm/test/CodeGen/X86/GlobalISel/legalize-trunc.mir
    M llvm/test/CodeGen/X86/GlobalISel/select-add.mir
    M llvm/test/CodeGen/X86/GlobalISel/select-br.mir
    M llvm/test/CodeGen/X86/GlobalISel/select-ext-x86-64.mir
    M llvm/test/CodeGen/X86/GlobalISel/select-fadd-scalar.mir
    M llvm/test/CodeGen/X86/GlobalISel/select-fconstant.mir
    M llvm/test/CodeGen/X86/GlobalISel/select-fdiv-scalar.mir
    M llvm/test/CodeGen/X86/GlobalISel/select-fmul-scalar.mir
    M llvm/test/CodeGen/X86/GlobalISel/select-fsub-scalar.mir
    M llvm/test/CodeGen/X86/GlobalISel/select-memop-scalar-unordered.mir
    M llvm/test/CodeGen/X86/GlobalISel/select-memop-scalar.mir
    M llvm/test/CodeGen/X86/GlobalISel/select-memop-v128.mir
    M llvm/test/CodeGen/X86/GlobalISel/select-memop-v256.mir
    M llvm/test/CodeGen/X86/GlobalISel/select-sub-v128.mir
    M llvm/test/CodeGen/X86/GlobalISel/select-sub.mir
    M llvm/test/CodeGen/X86/addsub-constant-folding.ll
    M llvm/test/CodeGen/X86/align-down-const.ll
    M llvm/test/CodeGen/X86/align-down.ll
    M llvm/test/CodeGen/X86/all-ones-vector.ll
    M llvm/test/CodeGen/X86/andimm8.ll
    M llvm/test/CodeGen/X86/apm.ll
    M llvm/test/CodeGen/X86/atomic-fp.ll
    M llvm/test/CodeGen/X86/atomic-idempotent.ll
    M llvm/test/CodeGen/X86/atomic-non-integer.ll
    M llvm/test/CodeGen/X86/atomic32.ll
    M llvm/test/CodeGen/X86/avg-mask.ll
    M llvm/test/CodeGen/X86/avx-cast.ll
    M llvm/test/CodeGen/X86/avx-cvttp2si.ll
    M llvm/test/CodeGen/X86/avx-intrinsics-x86-upgrade.ll
    M llvm/test/CodeGen/X86/avx-intrinsics-x86_64.ll
    M llvm/test/CodeGen/X86/avx-logic.ll
    M llvm/test/CodeGen/X86/avx-vzeroupper.ll
    M llvm/test/CodeGen/X86/avx.ll
    M llvm/test/CodeGen/X86/avx2-intrinsics-canonical.ll
    M llvm/test/CodeGen/X86/avx2-intrinsics-x86-upgrade.ll
    M llvm/test/CodeGen/X86/avx2-phaddsub.ll
    M llvm/test/CodeGen/X86/avx512-i1test.ll
    M llvm/test/CodeGen/X86/avx512-unsafe-fp-math.ll
    M llvm/test/CodeGen/X86/bmi-x86_64.ll
    M llvm/test/CodeGen/X86/bmi.ll
    M llvm/test/CodeGen/X86/bmi2.ll
    M llvm/test/CodeGen/X86/bool-vector.ll
    M llvm/test/CodeGen/X86/broadcast-elm-cross-splat-vec.ll
    M llvm/test/CodeGen/X86/broadcastm-lowering.ll
    M llvm/test/CodeGen/X86/build-vector-512.ll
    M llvm/test/CodeGen/X86/buildvec-extract.ll
    M llvm/test/CodeGen/X86/cast-vsel.ll
    M llvm/test/CodeGen/X86/clear-highbits.ll
    M llvm/test/CodeGen/X86/clear-lowbits.ll
    M llvm/test/CodeGen/X86/clz.ll
    M llvm/test/CodeGen/X86/cmovcmov.ll
    M llvm/test/CodeGen/X86/cmpxchg-clobber-flags.ll
    M llvm/test/CodeGen/X86/cmpxchg8b.ll
    M llvm/test/CodeGen/X86/code-model-elf-memset.ll
    M llvm/test/CodeGen/X86/combine-abs.ll
    M llvm/test/CodeGen/X86/combine-add-ssat.ll
    M llvm/test/CodeGen/X86/combine-add-usat.ll
    M llvm/test/CodeGen/X86/combine-bitselect.ll
    M llvm/test/CodeGen/X86/combine-movmsk.ll
    M llvm/test/CodeGen/X86/combine-sdiv.ll
    M llvm/test/CodeGen/X86/combine-smax.ll
    M llvm/test/CodeGen/X86/combine-smin.ll
    M llvm/test/CodeGen/X86/combine-sub-ssat.ll
    M llvm/test/CodeGen/X86/combine-sub-usat.ll
    M llvm/test/CodeGen/X86/combine-umax.ll
    M llvm/test/CodeGen/X86/combine-umin.ll
    M llvm/test/CodeGen/X86/complex-fastmath.ll
    M llvm/test/CodeGen/X86/concat-cast.ll
    M llvm/test/CodeGen/X86/conditional-tailcall-pgso.ll
    M llvm/test/CodeGen/X86/conditional-tailcall.ll
    M llvm/test/CodeGen/X86/const-shift-of-constmasked.ll
    M llvm/test/CodeGen/X86/copy-eflags.ll
    M llvm/test/CodeGen/X86/cvt16.ll
    M llvm/test/CodeGen/X86/div-rem-pair-recomposition-signed.ll
    M llvm/test/CodeGen/X86/div-rem-pair-recomposition-unsigned.ll
    M llvm/test/CodeGen/X86/extractelement-load.ll
    M llvm/test/CodeGen/X86/fast-isel-cmp.ll
    M llvm/test/CodeGen/X86/fast-isel-fptrunc-fpext.ll
    M llvm/test/CodeGen/X86/fast-isel-int-float-conversion-x86-64.ll
    M llvm/test/CodeGen/X86/fast-isel-select-cmov.ll
    M llvm/test/CodeGen/X86/fast-isel-store.ll
    M llvm/test/CodeGen/X86/fast-isel-uint-float-conversion-x86-64.ll
    M llvm/test/CodeGen/X86/fast-isel-vecload.ll
    M llvm/test/CodeGen/X86/finite-libcalls.ll
    M llvm/test/CodeGen/X86/fixup-bw-copy.ll
    M llvm/test/CodeGen/X86/flt-rounds.ll
    M llvm/test/CodeGen/X86/fma-fneg-combine-2.ll
    M llvm/test/CodeGen/X86/fma-intrinsics-canonical.ll
    M llvm/test/CodeGen/X86/fma-intrinsics-x86-upgrade.ll
    M llvm/test/CodeGen/X86/fma-intrinsics-x86.ll
    M llvm/test/CodeGen/X86/fma-scalar-combine.ll
    M llvm/test/CodeGen/X86/fma-scalar-memfold.ll
    M llvm/test/CodeGen/X86/fma.ll
    M llvm/test/CodeGen/X86/fma4-commute-x86.ll
    M llvm/test/CodeGen/X86/fma_patterns.ll
    M llvm/test/CodeGen/X86/fold-load-binops.ll
    M llvm/test/CodeGen/X86/fold-pcmpeqd-2.ll
    M llvm/test/CodeGen/X86/fp-cvt.ll
    M llvm/test/CodeGen/X86/fp-elim.ll
    M llvm/test/CodeGen/X86/fp-stack-direct-ret.ll
    M llvm/test/CodeGen/X86/fp-undef.ll
    M llvm/test/CodeGen/X86/fp128-cast.ll
    M llvm/test/CodeGen/X86/fshl.ll
    M llvm/test/CodeGen/X86/fshr.ll
    M llvm/test/CodeGen/X86/gather-addresses.ll
    M llvm/test/CodeGen/X86/haddsub-3.ll
    M llvm/test/CodeGen/X86/haddsub-4.ll
    M llvm/test/CodeGen/X86/haddsub.ll
    M llvm/test/CodeGen/X86/horizontal-reduce-add.ll
    M llvm/test/CodeGen/X86/horizontal-reduce-fadd.ll
    M llvm/test/CodeGen/X86/horizontal-reduce-smax.ll
    M llvm/test/CodeGen/X86/horizontal-reduce-smin.ll
    M llvm/test/CodeGen/X86/horizontal-reduce-umax.ll
    M llvm/test/CodeGen/X86/horizontal-reduce-umin.ll
    M llvm/test/CodeGen/X86/i128-mul.ll
    M llvm/test/CodeGen/X86/i128-sdiv.ll
    M llvm/test/CodeGen/X86/i128-udiv.ll
    M llvm/test/CodeGen/X86/i686-win-shrink-wrapping.ll
    M llvm/test/CodeGen/X86/inc-of-add.ll
    M llvm/test/CodeGen/X86/insert-loaded-scalar.ll
    M llvm/test/CodeGen/X86/insertelement-ones.ll
    M llvm/test/CodeGen/X86/insertelement-zero.ll
    M llvm/test/CodeGen/X86/insertps-combine.ll
    M llvm/test/CodeGen/X86/isint.ll
    M llvm/test/CodeGen/X86/kshift.ll
    M llvm/test/CodeGen/X86/lack-of-signed-truncation-check.ll
    M llvm/test/CodeGen/X86/lea-3.ll
    M llvm/test/CodeGen/X86/lea-dagdag.ll
    M llvm/test/CodeGen/X86/legalize-shl-vec.ll
    M llvm/test/CodeGen/X86/limited-prec.ll
    M llvm/test/CodeGen/X86/load-scalar-as-vector.ll
    M llvm/test/CodeGen/X86/lower-vec-shift.ll
    M llvm/test/CodeGen/X86/lround-conv-i32.ll
    M llvm/test/CodeGen/X86/lsr-loop-exit-cond.ll
    M llvm/test/CodeGen/X86/lwp-intrinsics.ll
    M llvm/test/CodeGen/X86/lzcnt.ll
    M llvm/test/CodeGen/X86/maskmovdqu.ll
    M llvm/test/CodeGen/X86/memcmp-more-load-pairs.ll
    M llvm/test/CodeGen/X86/memcmp.ll
    M llvm/test/CodeGen/X86/memcpy-struct-by-value.ll
    M llvm/test/CodeGen/X86/memset-sse-stack-realignment.ll
    M llvm/test/CodeGen/X86/merge-consecutive-loads-128.ll
    M llvm/test/CodeGen/X86/merge-consecutive-loads-512.ll
    M llvm/test/CodeGen/X86/merge-consecutive-stores-nt.ll
    M llvm/test/CodeGen/X86/midpoint-int-vec-128.ll
    M llvm/test/CodeGen/X86/midpoint-int-vec-256.ll
    M llvm/test/CodeGen/X86/midpoint-int-vec-512.ll
    M llvm/test/CodeGen/X86/midpoint-int.ll
    M llvm/test/CodeGen/X86/mmx-build-vector.ll
    M llvm/test/CodeGen/X86/movddup-load-fold.ll
    M llvm/test/CodeGen/X86/neg-of-3ops-lea.ll
    M llvm/test/CodeGen/X86/nontemporal-3.ll
    M llvm/test/CodeGen/X86/nontemporal-loads-2.ll
    M llvm/test/CodeGen/X86/not-and-simplify.ll
    M llvm/test/CodeGen/X86/not-of-dec.ll
    M llvm/test/CodeGen/X86/palignr.ll
    M llvm/test/CodeGen/X86/peephole-na-phys-copy-folding.ll
    M llvm/test/CodeGen/X86/phaddsub-undef.ll
    M llvm/test/CodeGen/X86/phaddsub.ll
    M llvm/test/CodeGen/X86/pmaddubsw.ll
    M llvm/test/CodeGen/X86/pmulh.ll
    M llvm/test/CodeGen/X86/powi.ll
    M llvm/test/CodeGen/X86/pr28173.ll
    M llvm/test/CodeGen/X86/pr29222.ll
    M llvm/test/CodeGen/X86/pr31773.ll
    M llvm/test/CodeGen/X86/pr32907.ll
    M llvm/test/CodeGen/X86/pr34177.ll
    M llvm/test/CodeGen/X86/pr34292.ll
    M llvm/test/CodeGen/X86/pr35918.ll
    M llvm/test/CodeGen/X86/pr35982.ll
    M llvm/test/CodeGen/X86/pr38533.ll
    M llvm/test/CodeGen/X86/pr45378.ll
    M llvm/test/CodeGen/X86/pr46189.ll
    M llvm/test/CodeGen/X86/pr47874.ll
    M llvm/test/CodeGen/X86/prefer-avx256-lzcnt.ll
    M llvm/test/CodeGen/X86/prefer-avx256-shift.ll
    M llvm/test/CodeGen/X86/prefer-avx256-trunc.ll
    M llvm/test/CodeGen/X86/prefer-avx256-wide-mul.ll
    M llvm/test/CodeGen/X86/promote-cmp.ll
    M llvm/test/CodeGen/X86/psubus.ll
    M llvm/test/CodeGen/X86/ptest.ll
    M llvm/test/CodeGen/X86/pull-binop-through-shift.ll
    M llvm/test/CodeGen/X86/pull-conditional-binop-through-shift.ll
    M llvm/test/CodeGen/X86/rdpid.ll
    M llvm/test/CodeGen/X86/recip-fastmath.ll
    M llvm/test/CodeGen/X86/recip-fastmath2.ll
    M llvm/test/CodeGen/X86/rotate-extract.ll
    M llvm/test/CodeGen/X86/sad_variations.ll
    M llvm/test/CodeGen/X86/sadd_sat.ll
    M llvm/test/CodeGen/X86/sadd_sat_plus.ll
    M llvm/test/CodeGen/X86/sat-add.ll
    M llvm/test/CodeGen/X86/scalar-fp-to-i32.ll
    M llvm/test/CodeGen/X86/scalar-int-to-fp.ll
    M llvm/test/CodeGen/X86/scalarize-fp.ll
    M llvm/test/CodeGen/X86/select-of-fp-constants.ll
    M llvm/test/CodeGen/X86/sext-i1.ll
    M llvm/test/CodeGen/X86/shift-amount-mod.ll
    M llvm/test/CodeGen/X86/shift-mask.ll
    M llvm/test/CodeGen/X86/shrink-const.ll
    M llvm/test/CodeGen/X86/shrink_vmul.ll
    M llvm/test/CodeGen/X86/shuffle-of-insert.ll
    M llvm/test/CodeGen/X86/shuffle-strided-with-offset-128.ll
    M llvm/test/CodeGen/X86/shuffle-strided-with-offset-256.ll
    M llvm/test/CodeGen/X86/shuffle-vs-trunc-128.ll
    M llvm/test/CodeGen/X86/signed-truncation-check.ll
    M llvm/test/CodeGen/X86/sincos.ll
    M llvm/test/CodeGen/X86/split-extend-vector-inreg.ll
    M llvm/test/CodeGen/X86/sqrt-partial.ll
    M llvm/test/CodeGen/X86/srem-seteq-optsize.ll
    M llvm/test/CodeGen/X86/srem-seteq-vec-nonsplat.ll
    M llvm/test/CodeGen/X86/srem-seteq-vec-splat.ll
    M llvm/test/CodeGen/X86/srem-vector-lkk.ll
    M llvm/test/CodeGen/X86/sse-cvttp2si.ll
    M llvm/test/CodeGen/X86/sse-fcopysign.ll
    M llvm/test/CodeGen/X86/sse-intrinsics-fast-isel-x86_64.ll
    M llvm/test/CodeGen/X86/sse-intrinsics-x86-upgrade.ll
    M llvm/test/CodeGen/X86/sse-intrinsics-x86_64-upgrade.ll
    M llvm/test/CodeGen/X86/sse-intrinsics-x86_64.ll
    M llvm/test/CodeGen/X86/sse-scalar-fp-arith-unary.ll
    M llvm/test/CodeGen/X86/sse-scalar-fp-arith.ll
    M llvm/test/CodeGen/X86/sse1-fcopysign.ll
    M llvm/test/CodeGen/X86/sse2-intrinsics-canonical.ll
    M llvm/test/CodeGen/X86/sse2-intrinsics-fast-isel-x86_64.ll
    M llvm/test/CodeGen/X86/sse2-intrinsics-x86-upgrade.ll
    M llvm/test/CodeGen/X86/sse2-intrinsics-x86.ll
    M llvm/test/CodeGen/X86/sse2-intrinsics-x86_64-upgrade.ll
    M llvm/test/CodeGen/X86/sse2-intrinsics-x86_64.ll
    M llvm/test/CodeGen/X86/sse2.ll
    M llvm/test/CodeGen/X86/sse3-intrinsics-fast-isel.ll
    M llvm/test/CodeGen/X86/sse3-intrinsics-x86.ll
    M llvm/test/CodeGen/X86/sse41-intrinsics-x86-upgrade.ll
    M llvm/test/CodeGen/X86/sse41-intrinsics-x86.ll
    M llvm/test/CodeGen/X86/sse41-pmovxrm.ll
    M llvm/test/CodeGen/X86/sse41.ll
    M llvm/test/CodeGen/X86/sse42-intrinsics-fast-isel-x86_64.ll
    M llvm/test/CodeGen/X86/sse42-intrinsics-x86.ll
    M llvm/test/CodeGen/X86/sse42-intrinsics-x86_64.ll
    M llvm/test/CodeGen/X86/sse4a.ll
    M llvm/test/CodeGen/X86/ssse3-intrinsics-fast-isel.ll
    M llvm/test/CodeGen/X86/ssse3-intrinsics-x86-upgrade.ll
    M llvm/test/CodeGen/X86/ssse3-intrinsics-x86.ll
    M llvm/test/CodeGen/X86/ssub_sat.ll
    M llvm/test/CodeGen/X86/ssub_sat_plus.ll
    M llvm/test/CodeGen/X86/store-zero-and-minus-one.ll
    M llvm/test/CodeGen/X86/sub-of-bias.ll
    M llvm/test/CodeGen/X86/sub-of-not.ll
    M llvm/test/CodeGen/X86/subvector-broadcast.ll
    M llvm/test/CodeGen/X86/tbm-intrinsics-fast-isel.ll
    M llvm/test/CodeGen/X86/tbm-intrinsics.ll
    M llvm/test/CodeGen/X86/trunc-subvector.ll
    M llvm/test/CodeGen/X86/uadd_sat.ll
    M llvm/test/CodeGen/X86/uadd_sat_plus.ll
    M llvm/test/CodeGen/X86/unfold-masked-merge-vector-variablemask-const.ll
    M llvm/test/CodeGen/X86/unfold-masked-merge-vector-variablemask.ll
    M llvm/test/CodeGen/X86/urem-seteq-nonzero.ll
    M llvm/test/CodeGen/X86/urem-seteq-optsize.ll
    M llvm/test/CodeGen/X86/urem-seteq-vec-nonsplat.ll
    M llvm/test/CodeGen/X86/urem-seteq-vec-nonzero.ll
    M llvm/test/CodeGen/X86/urem-seteq-vec-splat.ll
    M llvm/test/CodeGen/X86/urem-seteq-vec-tautological.ll
    M llvm/test/CodeGen/X86/usub_sat.ll
    M llvm/test/CodeGen/X86/usub_sat_plus.ll
    M llvm/test/CodeGen/X86/v8i1-masks.ll
    A llvm/utils/update_test_prefix.py

  Log Message:
  -----------
  [CodeGen][X86] Remove unused trivial check-prefixes from all CodeGen/X86 directory.

I had manually removed unused prefixes from CodeGen/X86 directory for more than 100 tests.
I checked the change history for each of them at the beginning, and then I mainly focused on the format since I found all of the unused prefixes were result from either insensible copy or residuum after functional update.
I think it's OK to remove the remaining X86 tests by script now. I wrote a rough script which works for me in most tests. I put it in llvm/utils temporarily for review and hope it may help other components owners.
The tests in this patch are all generated by the tool and checked by update tool for the autogenerated tests. I skimmed them and checked about 30 tests and didn't find any unexpected changes.

Reviewed By: mtrofin, MaskRay

Differential Revision: https://reviews.llvm.org/D91496




More information about the All-commits mailing list