[PATCH] D125511: [InstCombine] Merging constant-indexed GEP of GEP in both directions
William Junda Huang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat May 14 02:05:11 PDT 2022
huangjd updated this revision to Diff 429420.
huangjd added a comment.
Added fallback if merging GEP of GEP with all constant indices fails on both directions, convert the expression into GEP of i8, using the sum of both GEP's offsets
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125511/new/
https://reviews.llvm.org/D125511
Files:
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/test/Transforms/InstCombine/gep-merge-constant-indices.ll
llvm/test/Transforms/InstCombine/opaque-ptr.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125511.429420.patch
Type: text/x-patch
Size: 13796 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220514/c6833e45/attachment.bin>
More information about the llvm-commits
mailing list