[PATCH] D110246: [InstSimplify][InstCombine] Fold ptrtoint(gep i8 null, x) -> x
Alexander Richardson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 23 02:58:47 PDT 2021
arichardson updated this revision to Diff 374490.
arichardson added a comment.
- Use Q.DL.getTypeAllocSize instead of Q.DL.getTypeSizeInBits
- Drop unnecessary code and comments
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110246/new/
https://reviews.llvm.org/D110246
Files:
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
llvm/test/Transforms/InstCombine/ptrtoint-nullgep.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D110246.374490.patch
Type: text/x-patch
Size: 9970 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210923/0beb3bad/attachment.bin>
More information about the llvm-commits
mailing list