[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
Tue Aug 1 07:21:41 PDT 2023


nikic added a comment.

I think to start with, you should limit this to just the case where there is exactly one variable index (i.e. C*x or C*x+C2). Handling complex expressions is unlikely to be useful.


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

https://reviews.llvm.org/D156657



More information about the llvm-commits mailing list