[PATCH] D11205: [LAA] Begin moving the logic of generating checks out of addRuntimeCheck

Adam Nemet anemet at apple.com
Tue Jul 14 16:18:25 PDT 2015


anemet created this revision.
anemet added a reviewer: hfinkel.
anemet added a subscriber: llvm-commits.

The goal is to start moving us closer to the model where
RuntimePointerChecking will compute and store the checks.  Then a client
can filter the check according to its requirements and then use the
filtered list of checks with addRuntimeCheck.

I am not completely happy with making expandBounds static because now it
needs so many explicit arguments but I don't want to make the type
PointerBounds part of LAI.  This should get fixed when addRuntimeCheck
is moved to LoopVersioning where it really belongs, IMO.

Audited the assembly diff of the testsuite (including externals).  There
is a tiny bit of assembly churn that is due to the different order the
code for the bounds is expanded now
(MultiSource/Benchmarks/Prolangs-C/bison/conflicts.s and with LoopDist
on 456.hmmer/fast_algorithms.s).

http://reviews.llvm.org/D11205

Files:
  include/llvm/Analysis/LoopAccessAnalysis.h
  lib/Analysis/LoopAccessAnalysis.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11205.29728.patch
Type: text/x-patch
Size: 10752 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150714/6450bc37/attachment.bin>


More information about the llvm-commits mailing list