[LoopAccesses] Properly print whether memchecks are needed
authorAdam Nemet <anemet@apple.com>
Tue, 14 Apr 2015 01:12:55 +0000 (01:12 +0000)
committerAdam Nemet <anemet@apple.com>
Tue, 14 Apr 2015 01:12:55 +0000 (01:12 +0000)
commit1624f35f2b85272e0bc573c1dbe23904be47e073
treeafa44ad30bc62b947478f475f1decb8081668527
parent15552c46a0f3307e5e363dcce33638aa489fe928
[LoopAccesses] Properly print whether memchecks are needed

Fix oversight in -analyze output.  PtrRtCheck contains the pointers that
need to be checked against each other and not whether memchecks are
necessary.

For instance in the testcase PtrRtCheck has four elements but all
no-alias so no checking is necessary.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234833 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/LoopAccessAnalysis.cpp
test/Analysis/LoopAccessAnalysis/safe-no-checks.ll [new file with mode: 0644]