[all-commits] [llvm/llvm-project] 283feb: [polly] Make reduction detection checks more robus...

Karthika Devi C via All-commits all-commits at lists.llvm.org
Mon Feb 12 13:49:44 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 283feb42ee509cc56fb75316b4fd86b53a714cf4
      https://github.com/llvm/llvm-project/commit/283feb42ee509cc56fb75316b4fd86b53a714cf4
  Author: Karthika Devi C <quic_kartc at quicinc.com>
  Date:   2024-02-12 (Mon, 12 Feb 2024)

  Changed paths:
    M polly/lib/Analysis/ScopBuilder.cpp
    M polly/test/ScopInfo/NonAffine/non-affine-loop-condition-dependent-access_2.ll
    M polly/test/ScopInfo/NonAffine/non-affine-loop-condition-dependent-access_3.ll
    M polly/test/ScopInfo/int2ptr_ptr2int.ll

  Log Message:
  -----------
  [polly] Make reduction detection checks more robust - part 2 (#80721)

Existing reduction detection algorithm does two types of memory checks
before marking a load store pair as reduction.
Second check is to verify there is no other memory access in ScopStmt
overlapping with the memory of load and store that forms the reduction.
Existing check misses cases where there could be probable overlap such
as
	A[V] += A[P];
In the above case there is chance of overlap between A[V] and A[P] which
is missed.
This commit addresses this by removing the parameter from space before
checking for compatible space.

Part 1 of this patch :
[75297](https://github.com/llvm/llvm-project/pull/75297)




More information about the All-commits mailing list