[all-commits] [llvm/llvm-project] feaddc: [InstCombine] Preserve inbounds when canonicalizin...

Nikita Popov via All-commits all-commits at lists.llvm.org
Sun Apr 28 17:45:06 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: feaddc10194e54a5ef977320134956ad91591324
      https://github.com/llvm/llvm-project/commit/feaddc10194e54a5ef977320134956ad91591324
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2024-04-29 (Mon, 29 Apr 2024)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
    M llvm/test/Transforms/InstCombine/array.ll

  Log Message:
  -----------
  [InstCombine] Preserve inbounds when canonicalizing gep+add (#90160)

When canonicalizing gep+add into gep+gep we can preserve inbounds if the
add is also nsw and both add operands are non-negative (or both
negative, but I don't think that's practically relevant).

Proof: https://alive2.llvm.org/ce/z/tJLBta



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