[PATCH] D156657: [InstCombine] Fold icmp(constants[x]) when the range of x is given

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 31 09:04:31 PDT 2023


nikic added a comment.

It would be better to base this on collectOffset() and work in offset representation. Especially if you're interested in handling Rust, the type of the global and the GEP / loads will typically not line up (constant globals in Rust are usually i8 arrays, regardless of "real" type.)


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

https://reviews.llvm.org/D156657



More information about the llvm-commits mailing list