[all-commits] [llvm/llvm-project] a7edc9: [IR] Optimize stripAndAccumulateConstantOffsets() ...

Nikita Popov via All-commits all-commits at lists.llvm.org
Wed Jul 23 03:20:17 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a7edc95c799c46665ecf4465a4dc7ff4bee3ced0
      https://github.com/llvm/llvm-project/commit/a7edc95c799c46665ecf4465a4dc7ff4bee3ced0
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2025-07-23 (Wed, 23 Jul 2025)

  Changed paths:
    M llvm/lib/IR/Value.cpp

  Log Message:
  -----------
  [IR] Optimize stripAndAccumulateConstantOffsets() for common case (NFC)

For the common case where we don't have bit width changing address
space casts, we can directly call accumulateConstantOffset() on the
original Offset. Skip the bit width reconciliation logic in that
case.



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