[PATCH] D108763: Use type sizes when determining dependence

Jolanta Jensen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 26 07:12:19 PDT 2021


jolanta.jensen created this revision.
Herald added a subscriber: hiraditya.
Herald added a reviewer: sscalpone.
jolanta.jensen requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

In the isDependence function the code does not try hard enough
to determine the dependence between types. If the types are
different it simply gives up, whereas in fact what we really
care about are the type sizes. I've changed the code to compare
sizes instead of types.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D108763

Files:
  llvm/lib/Analysis/LoopAccessAnalysis.cpp
  llvm/test/Transforms/LoopVectorize/depend_diff_types.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108763.368870.patch
Type: text/x-patch
Size: 5349 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210826/2c6acec8/attachment.bin>


More information about the llvm-commits mailing list