[PATCH] D144274: [InstCombine] use loop info when running the pass after loop vectorization

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 23 06:41:54 PST 2023


spatel updated this revision to Diff 499825.
spatel marked 7 inline comments as done.
spatel added a comment.

Patch updated:
Changed instcombine pipeline invocations to not use loop info unless it is already available, so this is effectively NFC.

I didn't change the LoopVectorizer test RUN lines from the previous draft; we could instead update the CHECK lines. If we eventually move the GEP transform from InstCombine to LICM as suggested, I think we'd update the vectorizer tests again and see the difference in the CHECK lines.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144274/new/

https://reviews.llvm.org/D144274

Files:
  llvm/lib/Passes/PassBuilderPipelines.cpp
  llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
  llvm/test/Transforms/InstCombine/constant-fold-gep.ll
  llvm/test/Transforms/LoopVectorize/ARM/mve-reductions.ll
  llvm/test/Transforms/LoopVectorize/X86/x86-interleaved-accesses-masked-group.ll
  llvm/test/Transforms/LoopVectorize/X86/x86-interleaved-store-accesses-with-gaps.ll
  llvm/test/Transforms/LoopVectorize/consecutive-ptr-uniforms.ll
  llvm/test/Transforms/LoopVectorize/interleaved-accesses.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144274.499825.patch
Type: text/x-patch
Size: 9763 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230223/1bea0d72/attachment-0001.bin>


More information about the llvm-commits mailing list