[PATCH] D125070: [InstCombine] Simplify chain of GEP with constant indices

William Junda Huang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 5 20:26:24 PDT 2022


huangjd updated this revision to Diff 427523.
huangjd added a comment.

[InstCombine] Simplify chain of GEP with constant indices

SUMMARY:
Detects a chain of GEP where the first and last instructions
have constant indices, and combines them into one if such transformation
is valid

reviewers: davidxl, Carrot, nikic, spatel, reames


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D125070

Files:
  llvm/lib/Transforms/InstCombine/InstCombineInternal.h
  llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
  llvm/test/Transforms/InstCombine/gep-merge-constant-indices.ll
  llvm/test/Transforms/LoopVectorize/AArch64/vector-reverse-mask4.ll
  llvm/test/Transforms/LoopVectorize/interleaved-accesses.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125070.427523.patch
Type: text/x-patch
Size: 27066 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220506/6531502f/attachment-0001.bin>


More information about the llvm-commits mailing list