[PATCH] D110245: [ConstantFolding] Fold ptrtoint(gep i8 null, x) -> x

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 24 01:44:57 PDT 2021


arichardson updated this revision to Diff 374757.
arichardson added a comment.

Drop non-integral fixme. Should be safe  as pointed out by @nikic in D110247 <https://reviews.llvm.org/D110247>


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D110245

Files:
  llvm/lib/Analysis/ConstantFolding.cpp
  llvm/test/Transforms/InstCombine/ptrtoint-nullgep.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110245.374757.patch
Type: text/x-patch
Size: 21450 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210924/91149907/attachment.bin>


More information about the llvm-commits mailing list