[PATCH] D42151: [Polly][ScopBuilder] Make -polly-stmt-granularity=scalar-indep the default.

Michael Kruse via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 2 21:50:19 PST 2018


Meinersbur updated this revision to Diff 132726.
Meinersbur added a comment.

Instead of adding -polly-stmt-granulairy=bb globally, only add the flag to the tests that need it.

This avoids additional discrepancy between Polly's default settings and neew regression tests.

Many differences stem from statements for cmp instructions being created, but then simplified-away because such statments contain no write.


Repository:
  rPLO Polly

https://reviews.llvm.org/D42151

Files:
  lib/Analysis/ScopBuilder.cpp
  test/DeLICM/map_memset_zero.ll
  test/DeLICM/nomap_occupied.ll
  test/DeLICM/reduction.ll
  test/DeLICM/reduction_looprotate_gvnpre.ll
  test/DeLICM/reduction_looprotate_gvnpre_cond1.ll
  test/DeLICM/reduction_looprotate_gvnpre_cond2.ll
  test/DeLICM/reduction_looprotate_gvnpre_nopreheader.ll
  test/DeLICM/reduction_looprotate_hoisted.ll
  test/DeLICM/reduction_looprotate_licm.ll
  test/DeLICM/reduction_looprotate_licm2.ll
  test/DeLICM/reduction_looprotate_licm_double_write.ll
  test/DeLICM/reduction_looprotate_licm_nopreheader.ll
  test/DeLICM/reduction_looprotate_load.ll
  test/DeLICM/reduction_looprotate_loopguard_gvnpre.ll
  test/DeLICM/reduction_looprotate_loopguard_licm1.ll
  test/DeLICM/reduction_looprotate_loopguard_licm2.ll
  test/DeLICM/reduction_looprotate_loopguard_licm3.ll
  test/DeLICM/reduction_looprotate_readonly.ll
  test/DeLICM/reduction_looprotate_synthesizable.ll
  test/DeLICM/reduction_looprotate_undef.ll
  test/DeLICM/reduction_overapproximate.ll
  test/DeLICM/reduction_unrelatedunusual.ll
  test/DeLICM/reject_loadafterstore.ll
  test/DeLICM/reject_storeafterstore.ll
  test/DeLICM/reject_unusualstore.ll
  test/DependenceInfo/fine_grain_dep_0.ll
  test/DependenceInfo/reduction_dependences_equal_non_reduction_dependences.ll
  test/DependenceInfo/reduction_two_reductions_different_rloops.ll
  test/ForwardOpTree/atax.ll
  test/ForwardOpTree/forward_load_differentarray.ll
  test/ForwardOpTree/forward_load_double_write.ll
  test/ForwardOpTree/forward_load_fromloop.ll
  test/ForwardOpTree/forward_load_tripleuse.ll
  test/ForwardOpTree/jacobi-1d.ll
  test/Isl/Ast/dependence_distance_multiple_constant.ll
  test/Isl/Ast/dependence_distance_varying_multiple.ll
  test/Isl/CodeGen/MemAccess/create_arrays_heap.ll
  test/Isl/CodeGen/MemAccess/map_scalar_access.ll
  test/Isl/CodeGen/MemAccess/multiple_types.ll
  test/Isl/CodeGen/OpenMP/mapped-phi-access.ll
  test/Isl/CodeGen/OpenMP/recomputed-srem.ll
  test/Isl/CodeGen/partial_write_impossible_restriction.ll
  test/Isl/CodeGen/partial_write_mapped_scalar.ll
  test/Isl/CodeGen/partial_write_mapped_vector.ll
  test/Isl/CodeGen/unpredictable-loop-unsynthesizable.ll
  test/JSONExporter/ImportArrays/ImportArrays-Negative-size.ll
  test/MaximalStaticExpansion/load_after_store_same_statement.ll
  test/MaximalStaticExpansion/working_expansion_multiple_dependences_per_statement.ll
  test/MaximalStaticExpansion/working_expansion_multiple_instruction_per_statement.ll
  test/MaximalStaticExpansion/working_phi_two_scalars.ll
  test/PruneUnprofitable/prune_only_scalardeps.ll
  test/ScopInfo/branch-references-loop-scev-with-unknown-iterations-3.ll
  test/ScopInfo/condition-after-error-block-2.ll
  test/ScopInfo/condtion-after-error-block.ll
  test/ScopInfo/const_srem_sdiv.ll
  test/ScopInfo/constant_functions_multi_dim.ll
  test/ScopInfo/delinearize-together-all-data-refs.ll
  test/ScopInfo/escaping_empty_scop.ll
  test/ScopInfo/exit-phi-1.ll
  test/ScopInfo/exit-phi-2.ll
  test/ScopInfo/exit_phi_accesses-2.ll
  test/ScopInfo/invariant_load_complex_condition.ll
  test/ScopInfo/loop_carry.ll
  test/ScopInfo/many-scalar-dependences.ll
  test/ScopInfo/mod_ref_access_pointee_arguments.ll
  test/ScopInfo/mod_ref_read_pointee_arguments.ll
  test/ScopInfo/multidim_2d_with_modref_call.ll
  test/ScopInfo/multidim_2d_with_modref_call_2.ll
  test/ScopInfo/multidim_fixedsize_multi_offset.ll
  test/ScopInfo/multidim_fold_constant_dim_zero.ll
  test/ScopInfo/multidim_fortran_2d_with_modref_call.ll
  test/ScopInfo/multidim_fortran_srem.ll
  test/ScopInfo/multidim_nested_start_share_parameter.ll
  test/ScopInfo/multidim_with_bitcast.ll
  test/ScopInfo/multiple-types-access-offset-not-dividable-by-element-size.ll
  test/ScopInfo/multiple-types-non-affine-2.ll
  test/ScopInfo/multiple-types-non-affine.ll
  test/ScopInfo/multiple-types.ll
  test/ScopInfo/non-affine-region-with-loop-2.ll
  test/ScopInfo/out-of-scop-use-in-region-entry-phi-node.ll
  test/ScopInfo/parameter-constant-division.ll
  test/ScopInfo/phi_after_error_block.ll
  test/ScopInfo/phi_scalar_simple_2.ll
  test/ScopInfo/pointer-used-as-base-pointer-and-scalar-read.ll
  test/ScopInfo/polly-timeout-parameter-bounds.ll
  test/ScopInfo/process_added_dimensions.ll
  test/ScopInfo/read-only-scalars.ll
  test/ScopInfo/reduction_disabled_multiplicative.ll
  test/ScopInfo/reduction_escaping_intermediate_2.ll
  test/ScopInfo/reduction_invalid_overlapping_accesses.ll
  test/ScopInfo/reduction_multiple_simple_binary.ll
  test/ScopInfo/stmt_split_phi_in_stmt.ll
  test/ScopInfo/stmt_split_scalar_dependence.ll
  test/ScopInfo/stmt_split_within_loop.ll
  test/ScopInfo/unpredictable_nonscop_loop.ll
  test/ScopInfo/unprofitable_scalar-accs.ll
  test/Simplify/coalesce_3partials.ll
  test/Simplify/coalesce_disjointelements.ll
  test/Simplify/coalesce_overlapping.ll
  test/Simplify/coalesce_partial.ll
  test/Simplify/dead_access_load.ll
  test/Simplify/dead_access_phi.ll
  test/Simplify/dead_access_value.ll
  test/Simplify/dead_instruction.ll
  test/Simplify/nocoalesce_differentvalues.ll
  test/Simplify/nocoalesce_elementmismatch.ll
  test/Simplify/nocoalesce_readbetween.ll
  test/Simplify/nocoalesce_writebetween.ll
  test/Simplify/notredundant_synthesizable_unknownit.ll
  test/Simplify/out-of-scop-use-in-region-entry-phi-node.ll
  test/Simplify/overwritten.ll
  test/Simplify/overwritten_3store.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42151.132726.patch
Type: text/x-patch
Size: 69318 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180203/944be3de/attachment-0001.bin>


More information about the llvm-commits mailing list