[llvm] [ValueTracking] Allow getUnderlyingPointer to look through inttoptr/ptrtoint round trip casts (PR #146432)
Drew Kersnar via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 1 11:32:38 PDT 2025
dakersnar wrote:
@nikic It seems that a caching-based CaptureTracking analysis would also solve the issue I'm exploring, which is referenced in a TODO here: https://github.com/llvm/llvm-project/blob/5035d20dcbcea1edced779148ac69b84d3c97577/llvm/lib/Analysis/CaptureTracking.cpp#L43. I saw that you recently did some work in this area, out of curiosity, do you happen to know whether that specific TODO is being tracked/discussed anywhere? Do you have a rough idea of its feasibility/difficulty? I was going to start scoping out the idea but wanted to see if anyone else had already explored this. I would imagine the biggest difficulty would be the lifetime of the cache would have to be the lifetime of an instance of the AliasAnalysis class in order to be useful. Which might mean CaptureTracking.cpp would need to be redesigned. But these are very initial thoughts.
https://github.com/llvm/llvm-project/pull/146432
More information about the llvm-commits
mailing list