[PATCH] D157977: [InstCombine] OptimizePointerDifference when a gep has phi ptr

Biplob Mishra via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 18 03:11:55 PDT 2023


bipmis added a comment.

Thanks for the review.
On further observation I see a lot of the optimization of similar kind happening in InstructionCombineCompares.
So a fold should allow for these optimzations to happen. I have made these in the patch https://reviews.llvm.org/D159499
Maybe it would be good to review this first. Thanks


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

https://reviews.llvm.org/D157977



More information about the llvm-commits mailing list