[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:14:47 PDT 2022
huangjd created this revision.
huangjd added reviewers: davidxl, Carrot, nikic, spatel, reames.
Herald added a subscriber: hiraditya.
Herald added a project: All.
huangjd requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Detects a chain of GEP where the first and last instructions
have constant indices, and combines them into one if such transformation
is valid
Repository:
rG LLVM Github Monorepo
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.427521.patch
Type: text/x-patch
Size: 27583 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220506/bb50f339/attachment.bin>
More information about the llvm-commits
mailing list