[PATCH] [LV] Move addRuntimeCheck to LoopAccessAnalysis

Adam Nemet anemet at apple.com
Thu Feb 5 21:52:47 PST 2015


Hi hfinkel, aschwaighofer, nadav,

This will allow it to be shared with the new Loop Distribution pass.

getFirstInst is currently duplicated across LoopVectorize.cpp and
LoopAccessAnalysis.cpp.  This is a short-term work-around until we figure out
a better solution.

NFC.  (The code moved is adjusted a bit for the name of the Loop member and
that PtrRtCheck is now a reference rather than a pointer.)

http://reviews.llvm.org/D7458

Files:
  include/llvm/Analysis/LoopAccessAnalysis.h
  lib/Analysis/LoopAccessAnalysis.cpp
  lib/Transforms/Vectorize/LoopVectorize.cpp

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7458.19457.patch
Type: text/x-patch
Size: 11718 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150206/ac074488/attachment.bin>


More information about the llvm-commits mailing list