[llvm] SelectionDAG: Don't pad the source of ADDRSPACECAST if it's legal. (PR #225390)

via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 06:07:19 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-llvm-selectiondag

Author: sujianIBM

<details>
<summary>Changes</summary>

With this use case `%out = addrspacecast <2 x ptr> %in to <2 x ptr addrspace(1)>` on z/OS, the res type is `v2i32` (illegal) and the source type is `v2i64` (legal).
Padding the source up to `v4i64` makes it illegal on z/OS and breaks the type legalization. 

---
Full diff: https://github.com/llvm/llvm-project/pull/225390.diff


1 Files Affected:

- (modified) llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp (+3-2) 


``````````diff
The server is unavailable at this time. Please wait a few minutes before you try again.
``````````

</details>


https://github.com/llvm/llvm-project/pull/225390


More information about the llvm-commits mailing list