[PATCH] D98588: [InstCombine] Restrict a GEP transform to avoid changing provenance

Simonas Kazlauskas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 13 11:56:02 PST 2021


nagisa created this revision.
nagisa added reviewers: nikic, lebedev.ri, majnemer.
Herald added a subscriber: hiraditya.
nagisa requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

This is an alternative to D98120 <https://reviews.llvm.org/D98120>. Herein, instead of deleting the transformation entirely, we check
that the underlying objects are both the same and therefore this transformation wouldn't incur a
provenance change, if applied.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D98588

Files:
  llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
  llvm/test/Transforms/InstCombine/getelementptr.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D98588.330463.patch
Type: text/x-patch
Size: 10421 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210313/94d6b2f2/attachment.bin>


More information about the llvm-commits mailing list