[PATCH] D117038: [InstSimplify] Pass pointer and indices separately to SimplifyGEPInst.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 11 09:58:31 PST 2022


fhahn created this revision.
fhahn added reviewers: nikic, spatel, lebedev.ri.
Herald added a subscriber: hiraditya.
fhahn requested review of this revision.
Herald added a project: LLVM.

This doesn't require callers to put the pointer operand and the indices
in a container like a vector when calling the function. This is not
really an issue with the existing callers. But when using it from
IRBuilder the inputs are available as separate pointer value and indices
ArrayRef.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117038

Files:
  llvm/include/llvm/Analysis/InstructionSimplify.h
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/lib/Analysis/PHITransAddr.cpp
  llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
  llvm/lib/Transforms/Scalar/NewGVN.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117038.398998.patch
Type: text/x-patch
Size: 14756 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220111/1ca0d69c/attachment.bin>


More information about the llvm-commits mailing list