[llvm] [InferAS] Infer the address space of inttoptr (PR #173244)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 29 02:16:09 PDT 2026


jayfoad wrote:

> > Would it be OK to revert this until we have a definition for the hook that makes sense?
> 
> I prefer not. It is helpful to optimize swizzle cases. For AMDGPU it is not enabled, so I think this patch doesn't affect AMDGPU target.

I am not saying that it breaks AMDGPU. I am saying that the target hook seems to make no sense (in particular it seems impossible to implement it properly for AMDGPU) and should never have been merged in the first place.

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


More information about the llvm-commits mailing list