[all-commits] [llvm/llvm-project] a91191: [InstCombine] Changing constant-indexed GEP of GEP...

William Junda Huang via All-commits all-commits at lists.llvm.org
Thu Jun 30 14:27:21 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a9119143a2d1f4d0d0bc1fe0d819e5351b4e0deb
      https://github.com/llvm/llvm-project/commit/a9119143a2d1f4d0d0bc1fe0d819e5351b4e0deb
  Author: William Huang <williamjhuang at google.com>
  Date:   2022-06-30 (Thu, 30 Jun 2022)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/gep-merge-constant-indices.ll
    M llvm/test/Transforms/InstCombine/opaque-ptr.ll

  Log Message:
  -----------
  [InstCombine] Changing constant-indexed GEP of GEP to i8* for merging

When merging GEP of GEP with constant indices, if the second GEP's offset is not divisible by the first GEP's element size, convert both type to i8* and merge.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D125934




More information about the All-commits mailing list