aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
diff options
context:
space:
mode:
authorKarthika Devi C <quic_kartc@quicinc.com>2024-01-31 09:50:15 +0530
committerGitHub <noreply@github.com>2024-01-30 20:20:15 -0800
commitfa3307eb3f47b0bd574fc754934f98c0f27e4e36 (patch)
tree69382429237a2653d3f1bc0239b646bd3d5df031 /clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp
parentab70ac605e784c630122b27c5971fde68e80bd1b (diff)
downloadllvm-fa3307eb3f47b0bd574fc754934f98c0f27e4e36.zip
llvm-fa3307eb3f47b0bd574fc754934f98c0f27e4e36.tar.gz
llvm-fa3307eb3f47b0bd574fc754934f98c0f27e4e36.tar.bz2
[polly] Make reduction detection checks more robust - part 1 (#75297)
Existing reduction detection algorithm does two types of memory checks before marking a load store pair as reduction. First is to check if load and store are pointing to the same memory. This check right now detects the following case as reduction. sum[0] = sum[1] + A[i] This is because the check compares only base of the memory addresses involved and not their indices. This patch addresses this issue and introduces some debug prints. Added couple of test cases to verify the functionality of patch as well.
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/StdLibraryFunctionsChecker.cpp')
0 files changed, 0 insertions, 0 deletions