You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[InferAddressSpaces] collect flat address expression from return value (#70610)
If function return value's type is pointer, we can try to collect flat
address expression from it.
This PR also fixes noop_ptrint_pair_ce2 in noop-ptrint-pair.ll in #70611
; AMDGCN-NEXT: ret <2 x ptr> <ptr addrspacecast (ptr addrspace(1) @g to ptr), ptr inttoptr (i64 ptrtoint (ptr addrspace(3) @l to i64) to ptr)>
74
+
; NOTTI-NEXT: ret <2 x ptr> <ptr inttoptr (i64 ptrtoint (ptr addrspace(1) @g to i64) to ptr), ptr inttoptr (i64 ptrtoint (ptr addrspace(3) @l to i64) to ptr)>
75
+
define <2 x ptr> @noop_ptrint_pair_ce2_vec() {
76
+
ret <2 x ptr> <ptrinttoptr (i64ptrtoint (ptraddrspace(1) @gtoi64) toptr), ptrinttoptr (i64ptrtoint (ptraddrspace(3) @ltoi64) toptr)>
77
+
}
78
+
72
79
; COMMON-LABEL: @noop_ptrint_pair_ce3(
73
80
; AMDGCN-NEXT: %i = inttoptr i64 ptrtoint (ptr addrspace(1) @g to i64) to ptr
0 commit comments