[PATCH] D106450: [InstCombine] Fold (gep (oneuse(gep Ptr, Idx0)), Idx1) -> (gep Ptr, (add Idx0, Idx1)) (PR51069)

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 30 07:26:40 PDT 2021


RKSimon added a comment.

@Whitney we need the end-to-end test case to have a better understanding of where your original IR is appearing and why cse isn't solving this - running it through -O3  seems to be fine: https://c.godbolt.org/z/jWYcra73x (vs just -instcombine) which suggests a phase ordering issue is at play


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D106450



More information about the llvm-commits mailing list