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

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 23 02:44:24 PDT 2021


lebedev.ri added a comment.

If there isn't a fold `gep inbounds null, ???  -->  bitcast(null)` it might be interesting to add one though.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D110245



More information about the llvm-commits mailing list