[PATCH] D110168: [InstSimplify] Don't lose inbounds when simplifying a GEP

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 21 06:39:41 PDT 2021


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

I noticed this while working on a (ptrtoint (gep null, x)) -> x fold.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D110168

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
  llvm/test/Transforms/InstSimplify/simplify-nested-bitcast.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110168.373898.patch
Type: text/x-patch
Size: 7040 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210921/d3da166f/attachment.bin>


More information about the llvm-commits mailing list