[llvm] [DirectX] Remove lifetime intrinsics and run Dead Store Elimination (PR #152636)
Farzon Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 11 10:07:40 PDT 2025
================
@@ -78,6 +82,17 @@ static bool forwardHandleAccesses(Function &F, DominatorTree &DT) {
case Intrinsic::dx_resource_handlefromimplicitbinding:
processHandle(II, HandleMap);
break;
+ // Note: Lifetime intrinsics do not show up as users of an Alloca.
+ // As a result we walk the whole function to find the lifetimes and
+ // store them so that we may delete the alloca matches
----------------
farzonl wrote:
I did it this way because the uses by lifetime intrinsics weren’t showing up when i was trying in the loop on 124.
https://github.com/llvm/llvm-project/pull/152636
More information about the llvm-commits
mailing list