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

Pengfei Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 15 07:52:43 PST 2020


pengfei created this revision.
pengfei added reviewers: mtrofin, MaskRay, RKSimon, craig.topper, andrew.w.kaylor.
Herald added subscribers: llvm-commits, mstorsjo, dschuff.
Herald added a project: LLVM.
pengfei requested review of this revision.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D91496

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91496.305363.patch
Type: text/x-patch
Size: 388375 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201115/228179c3/attachment-0001.bin>


More information about the llvm-commits mailing list