[all-commits] [llvm/llvm-project] d01533: [InstCombine]PtrReplacer: Correctly handle select ...
Pierre van Houtryve via All-commits
all-commits at lists.llvm.org
Tue Jul 15 04:29:10 PDT 2025
Branch: refs/heads/users/pierre-vh/fix-select-ptrreplace
Home: https://github.com/llvm/llvm-project
Commit: d01533ac8cb6acc06b3321ca772fba407983f420
https://github.com/llvm/llvm-project/commit/d01533ac8cb6acc06b3321ca772fba407983f420
Author: pvanhout <pierre.vanhoutryve at amd.com>
Date: 2025-07-15 (Tue, 15 Jul 2025)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineLoadStoreAlloca.cpp
A llvm/test/Transforms/InstCombine/AMDGPU/ptr-replacer-select-addrspacecast-crash.ll
Log Message:
-----------
[InstCombine]PtrReplacer: Correctly handle select with unavailable operands
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