[llvm] [SeparateConstOffsetFromGEP] Fix offsets across trunc and ext (PR #225195)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 21 14:02:12 PDT 2026
llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-transforms
Author: Alex MacLean (AlexMaclean)
<details>
<summary>Changes</summary>
Stop extracting offsets from arithmetic through a truncation followed by sign or zero extension.
[Compiler Explorer reproducer](https://godbolt.org/z/xK1WTT7nY) and [Alive2 counterexample](https://alive2.llvm.org/ce/z/KWcMNZ).
---
Full diff: https://github.com/llvm/llvm-project/pull/225195.diff
3 Files Affected:
- (modified) llvm/lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp (+2)
- (modified) llvm/test/Transforms/SeparateConstOffsetFromGEP/NVPTX/split-gep.ll (+5-3)
- (added) llvm/test/Transforms/SeparateConstOffsetFromGEP/NVPTX/trunc-ext.ll (+115)
``````````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/225195
More information about the llvm-commits
mailing list