[all-commits] [llvm/llvm-project] d2408c: [InstCombine] Canonicalize more geps with constant...

David Green via All-commits all-commits at lists.llvm.org
Sun Oct 6 02:44:42 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d2408c417cfa71f1786c909788560374eb1aca96
      https://github.com/llvm/llvm-project/commit/d2408c417cfa71f1786c909788560374eb1aca96
  Author: David Green <david.green at arm.com>
  Date:   2024-10-06 (Sun, 06 Oct 2024)

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

  Log Message:
  -----------
  [InstCombine] Canonicalize more geps with constant gep bases and constant offsets. (#110033)

This is another small but hopefully not performance negative step to
canonicalizing towards i8 geps. We looks for geps with a constant offset
base pointer of the form `gep (gep @glob, C1), x, C2` and expand the gep
instruction, so that the constant can hopefully be combined together (or
the x offset can be computed in common).



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list