[all-commits] [llvm/llvm-project] 3f8027: [test] Update some test cases to use -passes when ...

Björn Pettersson via All-commits all-commits at lists.llvm.org
Wed Sep 29 12:53:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f8027fb67bc4efae9959a4d75f8f37ecf0c3985
      https://github.com/llvm/llvm-project/commit/3f8027fb67bc4efae9959a4d75f8f37ecf0c3985
  Author: Bjorn Pettersson <bjorn.a.pettersson at ericsson.com>
  Date:   2021-09-29 (Wed, 29 Sep 2021)

  Changed paths:
    M llvm/test/Transforms/ADCE/2002-01-31-UseStuckAround.ll
    M llvm/test/Transforms/ADCE/2002-05-22-PHITest.ll
    M llvm/test/Transforms/ADCE/2002-05-23-ZeroArgPHITest.ll
    M llvm/test/Transforms/ADCE/2002-05-28-Crash-distilled.ll
    M llvm/test/Transforms/ADCE/2002-05-28-Crash.ll
    M llvm/test/Transforms/ADCE/2002-07-17-AssertionFailure.ll
    M llvm/test/Transforms/ADCE/2002-07-17-PHIAssertion.ll
    M llvm/test/Transforms/ADCE/2002-07-29-Segfault.ll
    M llvm/test/Transforms/ADCE/2003-01-22-PredecessorProblem.ll
    M llvm/test/Transforms/ADCE/2003-04-25-PHIPostDominateProblem.ll
    M llvm/test/Transforms/ADCE/2003-06-11-InvalidCFG.ll
    M llvm/test/Transforms/ADCE/2003-06-24-BadSuccessor.ll
    M llvm/test/Transforms/ADCE/2003-06-24-BasicFunctionality.ll
    M llvm/test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll
    M llvm/test/Transforms/ADCE/2003-09-15-InfLoopCrash.ll
    M llvm/test/Transforms/ADCE/2004-05-04-UnreachableBlock.ll
    M llvm/test/Transforms/ADCE/2005-02-17-PHI-Invoke-Crash.ll
    M llvm/test/Transforms/ADCE/2017-08-21-DomTree-deletions.ll
    M llvm/test/Transforms/ADCE/adce-salvage-dbg-value.ll
    M llvm/test/Transforms/ADCE/basictest1.ll
    M llvm/test/Transforms/ADCE/basictest2.ll
    M llvm/test/Transforms/ADCE/blocks-with-dead-term-nondeterministic.ll
    M llvm/test/Transforms/ADCE/broken-loop-info.ll
    M llvm/test/Transforms/ADCE/dce_pure_call.ll
    M llvm/test/Transforms/ADCE/dce_pure_invoke.ll
    M llvm/test/Transforms/ADCE/debug-info-intrinsic.ll
    M llvm/test/Transforms/ADCE/delete-profiling-calls-to-constant.ll
    M llvm/test/Transforms/ADCE/unreachable-function.ll
    M llvm/test/Transforms/ADCE/willreturn.ll
    M llvm/test/Transforms/AddDiscriminators/basic.ll
    M llvm/test/Transforms/AddDiscriminators/call-nested.ll
    M llvm/test/Transforms/AddDiscriminators/call.ll
    M llvm/test/Transforms/AddDiscriminators/dbg-declare-discriminator.ll
    M llvm/test/Transforms/AddDiscriminators/diamond.ll
    M llvm/test/Transforms/AddDiscriminators/first-only.ll
    M llvm/test/Transforms/AddDiscriminators/inlined.ll
    M llvm/test/Transforms/AddDiscriminators/invoke.ll
    M llvm/test/Transforms/AddDiscriminators/memcpy-discriminator.ll
    M llvm/test/Transforms/AddDiscriminators/multiple.ll
    M llvm/test/Transforms/AddDiscriminators/no-discriminators.ll
    M llvm/test/Transforms/AddDiscriminators/oneline.ll
    M llvm/test/Transforms/AggressiveInstCombine/funnel.ll
    M llvm/test/Transforms/AggressiveInstCombine/masked-cmp.ll
    M llvm/test/Transforms/AggressiveInstCombine/popcount.ll
    M llvm/test/Transforms/AggressiveInstCombine/pr50555.ll
    M llvm/test/Transforms/AggressiveInstCombine/rotate.ll
    M llvm/test/Transforms/AggressiveInstCombine/trunc_ashr.ll
    M llvm/test/Transforms/AggressiveInstCombine/trunc_const_expr.ll
    M llvm/test/Transforms/AggressiveInstCombine/trunc_lshr.ll
    M llvm/test/Transforms/AggressiveInstCombine/trunc_multi_uses.ll
    M llvm/test/Transforms/AggressiveInstCombine/trunc_select.ll
    M llvm/test/Transforms/AggressiveInstCombine/trunc_select_cmp.ll
    M llvm/test/Transforms/AggressiveInstCombine/trunc_shl.ll
    M llvm/test/Transforms/AggressiveInstCombine/trunc_unreachable_bb.ll
    M llvm/test/Transforms/AlignmentFromAssumptions/amdgpu-crash.ll
    M llvm/test/Transforms/AlignmentFromAssumptions/simple.ll
    M llvm/test/Transforms/AlignmentFromAssumptions/simple32.ll
    M llvm/test/Transforms/AlignmentFromAssumptions/start-unk.ll
    M llvm/test/Transforms/ArgumentPromotion/2008-02-01-ReturnAttrs.ll
    M llvm/test/Transforms/ArgumentPromotion/2008-07-02-array-indexing.ll
    M llvm/test/Transforms/ArgumentPromotion/2008-09-08-CGUpdateSelfEdge.ll
    M llvm/test/Transforms/ArgumentPromotion/aggregate-promote-dead-gep.ll
    M llvm/test/Transforms/ArgumentPromotion/aggregate-promote.ll
    M llvm/test/Transforms/ArgumentPromotion/attrs.ll
    M llvm/test/Transforms/ArgumentPromotion/byval-2.ll
    M llvm/test/Transforms/ArgumentPromotion/byval.ll
    M llvm/test/Transforms/ArgumentPromotion/chained.ll
    M llvm/test/Transforms/ArgumentPromotion/control-flow.ll
    M llvm/test/Transforms/ArgumentPromotion/control-flow2.ll
    M llvm/test/Transforms/ArgumentPromotion/dbg.ll
    M llvm/test/Transforms/ArgumentPromotion/dead-gep-no-promotion.ll
    M llvm/test/Transforms/ArgumentPromotion/fp80.ll
    M llvm/test/Transforms/ArgumentPromotion/inalloca.ll
    M llvm/test/Transforms/ArgumentPromotion/musttail.ll
    M llvm/test/Transforms/ArgumentPromotion/naked_functions.ll
    M llvm/test/Transforms/ArgumentPromotion/nonzero-address-spaces.ll
    M llvm/test/Transforms/ArgumentPromotion/pr27568.ll
    M llvm/test/Transforms/ArgumentPromotion/pr33641_remove_arg_dbgvalue.ll
    M llvm/test/Transforms/ArgumentPromotion/reserve-tbaa.ll
    M llvm/test/Transforms/ArgumentPromotion/sret.ll
    M llvm/test/Transforms/ArgumentPromotion/variadic.ll
    M llvm/test/Transforms/BDCE/basic.ll
    M llvm/test/Transforms/BDCE/dbg-multipleuses.ll
    M llvm/test/Transforms/BDCE/dce-pure.ll
    M llvm/test/Transforms/BDCE/dead-uses.ll
    M llvm/test/Transforms/BDCE/dead-void-ro.ll
    M llvm/test/Transforms/BDCE/intrinsics.ll
    M llvm/test/Transforms/BDCE/invalidate-assumptions.ll
    M llvm/test/Transforms/BDCE/order.ll
    M llvm/test/Transforms/BDCE/pr26587.ll
    M llvm/test/Transforms/BDCE/pr41925.ll
    M llvm/test/Transforms/BDCE/sext_multi_uses.ll
    M llvm/test/Transforms/BDCE/vectors-inseltpoison.ll
    M llvm/test/Transforms/BDCE/vectors.ll
    M llvm/test/Transforms/BDCE/willreturn.ll
    M llvm/test/Transforms/CalledValuePropagation/simple-arguments.ll
    M llvm/test/Transforms/CalledValuePropagation/simple-memory.ll
    M llvm/test/Transforms/CalledValuePropagation/simple-select.ll
    M llvm/test/Transforms/DCE/basic-preservation.ll
    M llvm/test/Transforms/DCE/basic.ll
    M llvm/test/Transforms/DCE/calls-errno.ll
    M llvm/test/Transforms/DCE/dbg-value-removal.ll
    M llvm/test/Transforms/DCE/guards.ll
    M llvm/test/Transforms/DCE/int_sideeffect.ll
    M llvm/test/Transforms/Reg2Mem/crash.ll
    M llvm/test/Transforms/WholeProgramDevirt/bad-read-from-vtable.ll
    M llvm/test/Transforms/WholeProgramDevirt/branch-funnel-threshold.ll
    M llvm/test/Transforms/WholeProgramDevirt/branch-funnel.ll
    M llvm/test/Transforms/WholeProgramDevirt/constant-arg.ll
    M llvm/test/Transforms/WholeProgramDevirt/devirt-single-impl-check.ll
    M llvm/test/Transforms/WholeProgramDevirt/devirt-single-impl-multiple-assumes.ll
    M llvm/test/Transforms/WholeProgramDevirt/devirt-single-impl.ll
    M llvm/test/Transforms/WholeProgramDevirt/devirt-single-impl2.ll
    M llvm/test/Transforms/WholeProgramDevirt/expand-check.ll
    M llvm/test/Transforms/WholeProgramDevirt/export-nothing.ll
    M llvm/test/Transforms/WholeProgramDevirt/export-single-impl.ll
    M llvm/test/Transforms/WholeProgramDevirt/export-uniform-ret-val.ll
    M llvm/test/Transforms/WholeProgramDevirt/export-unique-ret-val.ll
    M llvm/test/Transforms/WholeProgramDevirt/export-unsuccessful-checked.ll
    M llvm/test/Transforms/WholeProgramDevirt/export-vcp.ll
    M llvm/test/Transforms/WholeProgramDevirt/import-indir.ll
    M llvm/test/Transforms/WholeProgramDevirt/import-no-dominating-assume.ll
    M llvm/test/Transforms/WholeProgramDevirt/import.ll
    M llvm/test/Transforms/WholeProgramDevirt/non-constant-vtable.ll
    M llvm/test/Transforms/WholeProgramDevirt/pointer-vtable.ll
    M llvm/test/Transforms/WholeProgramDevirt/soa-vtable.ll
    M llvm/test/Transforms/WholeProgramDevirt/struct-vtable.ll
    M llvm/test/Transforms/WholeProgramDevirt/uniform-retval-invoke.ll
    M llvm/test/Transforms/WholeProgramDevirt/uniform-retval-multiple-assumes.ll
    M llvm/test/Transforms/WholeProgramDevirt/uniform-retval.ll
    M llvm/test/Transforms/WholeProgramDevirt/unique-retval-multiple-assumes.ll
    M llvm/test/Transforms/WholeProgramDevirt/unique-retval-same-vtable.ll
    M llvm/test/Transforms/WholeProgramDevirt/unique-retval.ll
    M llvm/test/Transforms/WholeProgramDevirt/vcp-accesses-memory.ll
    M llvm/test/Transforms/WholeProgramDevirt/vcp-decl.ll
    M llvm/test/Transforms/WholeProgramDevirt/vcp-no-this.ll
    M llvm/test/Transforms/WholeProgramDevirt/vcp-non-constant-arg.ll
    M llvm/test/Transforms/WholeProgramDevirt/vcp-too-wide-ints.ll
    M llvm/test/Transforms/WholeProgramDevirt/vcp-type-mismatch.ll
    M llvm/test/Transforms/WholeProgramDevirt/vcp-uses-this.ll
    M llvm/test/Transforms/WholeProgramDevirt/virtual-const-prop-begin.ll
    M llvm/test/Transforms/WholeProgramDevirt/virtual-const-prop-check.ll
    M llvm/test/Transforms/WholeProgramDevirt/virtual-const-prop-end.ll
    M llvm/test/Transforms/WholeProgramDevirt/virtual-const-prop-multiple-assumes.ll
    M llvm/test/Transforms/WholeProgramDevirt/vtable-decl.ll

  Log Message:
  -----------
  [test] Update some test cases to use -passes when specifying the pipeline

This updates transform test cases for
  ADCE
  AddDiscriminators
  AggressiveInstCombine
  AlignmentFromAssumptions
  ArgumentPromotion
  BDCE
  CalledValuePropagation
  DCE
  Reg2Mem
  WholeProgramDevirt
to use the -passes syntax when specifying the pipeline.

Given that LLVM_ENABLE_NEW_PASS_MANAGER isn't set to off (which is
a deprecated feature) the updated test cases already used the new
pass manager, but they were using the legacy syntax when specifying
the passes to run. This patch can be seen as a step toward deprecating
that interface.

This patch also removes some redundant RUN lines. Here I am
referring to test cases that had multiple RUN lines verifying both
the legacy "-passname" syntax and the new "-passes=passname" syntax.
Since we switched the default pass manager to "new PM" both RUN lines
have verified the new PM version of the pass (more or less wasting
time running the same test twice), unless LLVM_ENABLE_NEW_PASS_MANAGER
is set to "off". It is assumed that it is enough to run these tests
with the new pass manager now.

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




More information about the All-commits mailing list