[all-commits] [llvm/llvm-project] f22341: [InstCombine]PtrReplacer: Correctly handle select ...

Pierre van Houtryve via All-commits all-commits at lists.llvm.org
Wed Jul 16 00:32:26 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f223411e2e005ecd54523801db603b54d69f3159
      https://github.com/llvm/llvm-project/commit/f223411e2e005ecd54523801db603b54d69f3159
  Author: Pierre van Houtryve <pierre.vanhoutryve at amd.com>
  Date:   2025-07-16 (Wed, 16 Jul 2025)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
    M llvm/test/Transforms/InstCombine/AMDGPU/ptr-replace-alloca.ll

  Log Message:
  -----------
  [InstCombine]PtrReplacer: Correctly handle select with unavailable operands (#148829)

The testcase I added previously failed because a SelectInst with invalid
operands was created (one side `addrspace(4)`, the other
`addrspace(5)`).
PointerReplacer needs to dig deeper if the true and/or false
instructions of the select are not available.

Fixes SWDEV-542957



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