[PATCH] D146622: (WIP)[AggressiveInstCombine] folding load for constant global patterened arrays and structs by GEP indices

Kohei Asano via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 22 03:56:25 PDT 2023


khei4 created this revision.
khei4 added reviewers: nikic, spatel.
Herald added subscribers: StephenFan, JDevlieghere, hiraditya.
Herald added a project: All.
khei4 requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Fold loadInst for constant aggregate types, those load results are equivalent for the given alignments.

This revision will be part 2 of the following stages.

1. alignment-based
2. GEP-based (This revision will be)

alive proofs: https://alive2.llvm.org/ce/z/qRb26K(WIP)
Depends on: https://reviews.llvm.org/D145355, https://reviews.llvm.org/D144445
Fixes: https://github.com/rust-lang/rust/issues/107208


https://reviews.llvm.org/D146622

Files:
  llvm/lib/Transforms/AggressiveInstCombine/AggressiveInstCombine.cpp
  llvm/test/Transforms/AggressiveInstCombine/patterned-load.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146622.507306.patch
Type: text/x-patch
Size: 8999 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230322/8251aba0/attachment.bin>


More information about the llvm-commits mailing list