[llvm] [AMDGPULowerBufferFatPointers] Expand const exprs using fat pointers (PR #95558)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 14 09:16:09 PDT 2024
================
@@ -176,7 +179,7 @@ define i64 @ptrtoint_short() {
define i32 @ptrtoint_very_short() {
; CHECK-LABEL: define i32 @ptrtoint_very_short
; CHECK-SAME: () #[[ATTR0]] {
-; CHECK-NEXT: ret i32 add nuw nsw (i32 shl (i32 ptrtoint (ptr addrspace(8) @buf to i32), i32 32), i32 12)
+; CHECK-NEXT: ret i32 12
----------------
nikic wrote:
This is the same as https://github.com/llvm/llvm-project/pull/95543, but for constants. It previously produced a poison shift that shouldn't be there.
https://github.com/llvm/llvm-project/pull/95558
More information about the llvm-commits
mailing list