[PATCH] D79145: Allow gep (select) combine with non-constant operands

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 29 16:46:19 PDT 2020


rampitec created this revision.
rampitec added reviewers: arsenm, john.brawn, spatel.
Herald added subscribers: hiraditya, wdng.
Herald added a project: LLVM.

This transformation then allows SROA to eliminate allocas
whose address is being selected.


https://reviews.llvm.org/D79145

Files:
  llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
  llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
  llvm/test/Transforms/InstCombine/getelementptr.ll
  llvm/test/Transforms/SROA/select-gep.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79145.261090.patch
Type: text/x-patch
Size: 5866 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200429/8bac7de1/attachment.bin>


More information about the llvm-commits mailing list