[PATCH] D138637: [InstCombine] Combine opaque pointer single index GEP and with src GEP by matching the types
krishna chaitanya sankisa via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 2 01:08:36 PST 2023
skc7 updated this revision to Diff 485845.
skc7 retitled this revision from "[InstCombine] Combine opaque pointer single index GEP and with src GEP which has result of array type" to "[InstCombine] Combine opaque pointer single index GEP and with src GEP by matching the types".
skc7 edited the summary of this revision.
skc7 added a comment.
Remove check for src array type.
Drop last zero from resulting NewIndices after matching the types.
Drop triple from test. Updated test checks with update_test_checks.py.
Added new tests for struct of array type and to check new zero index in resulting gep.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138637/new/
https://reviews.llvm.org/D138637
Files:
llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
llvm/test/Transforms/InstCombine/opaque-ptr-gep-of-gep.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D138637.485845.patch
Type: text/x-patch
Size: 6900 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230102/e4b6f179/attachment-0001.bin>
More information about the llvm-commits
mailing list