[PATCH] D102476: [VectorCombine] Use constant range info for index scalarization legality.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 14 03:32:41 PDT 2021


fhahn created this revision.
fhahn added reviewers: RKSimon, spatel, nlopes, qiucf.
Herald added subscribers: arphaman, hiraditya.
fhahn requested review of this revision.
Herald added a project: LLVM.

We can only scalarize memory accesses if we know the index is valid.

This patch adjusts canScalarizeAcceess to fall back to
computeConstantRange to check if the index is known to be valid.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D102476

Files:
  llvm/lib/Transforms/Vectorize/VectorCombine.cpp
  llvm/test/Transforms/VectorCombine/AArch64/load-extractelement-scalarization.ll
  llvm/test/Transforms/VectorCombine/load-insert-store.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102476.345385.patch
Type: text/x-patch
Size: 5872 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210514/258e6d70/attachment.bin>


More information about the llvm-commits mailing list