[PATCH] D107822: [InstCombine] Fold Int2Ptr/PtrToInt if the ptr is dereferenceable

Krishna Kariya via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 11 12:40:22 PDT 2021


Krishnakariya updated this revision to Diff 365821.
Krishnakariya edited the summary of this revision.
Krishnakariya added a comment.

Modified code and Added new tests


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107822/new/

https://reviews.llvm.org/D107822

Files:
  llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
  llvm/lib/Transforms/InstCombine/InstCombineInternal.h
  llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
  llvm/test/Transforms/InstCombine/load-int2ptr-fold.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107822.365821.patch
Type: text/x-patch
Size: 9263 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210811/03cd83e4/attachment.bin>


More information about the llvm-commits mailing list