[PATCH] D106352: [InstCombine] Fold (select C, (gep (gep Ptr, Idx0), Idx1), (gep Ptr, Idx0)) -> (gep Ptr, (select C, Idx0+Idx1, Idx0)) (PR51069)

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 20 10:24:51 PDT 2021


RKSimon added a comment.

I'm going to take a look at folding nested geps in another parallel patch - I agree there's a lot of overlap in the transforms but hopefully we'll end up with similar canonicalizations - I'm hoping the the multi-use cases might not be a major problem.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D106352



More information about the llvm-commits mailing list