summaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorJacob Weightman <jacobdweightman@gmail.com>2022-06-03 15:52:55 -0500
committerChi Chun Chen <chichun.chen@hpe.com>2022-06-03 15:55:54 -0500
commit814a0abccefdd2e52b1b507f21ce842b689dbedd (patch)
treed0970d104b3f900a321b01e07cf46377b9129aa6 /clang/lib/CodeGen/CodeGenModule.cpp
parent8da5d5dbdc0872d3cdbeb5ff42c94775a98c71bc (diff)
AMDGPU: allow reordering of functions in AMDGPUResourceUsageAnalysis
The AMDGPUResourceUsageAnalysis was previously a CGSCC pass, and assumed that a function's callees were always analyzed prior to their callees. When it was refactored into a module pass, this assumption no longer always holds. This results in calls being erroneously identified as indirect, and reserving private segment space for them. This results in significantly slower kernel launch latency. This patch changes the order in which the module's functions are analyzed from the order in which they occur in the module to a post-order traversal of the call graph. Perhaps Clang always generates the module's functions in such an order, but this is not the case for the Cray Fortran compiler. Reviewed By: #amdgpu, arsenm Differential Revision: https://reviews.llvm.org/D126025
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions