[llvm] [AMDGPU] Add IR-level pass to rewrite away address space 7 (PR #77952)
Piotr Sobczak via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 16 00:28:28 PST 2024
================
@@ -1129,9 +1125,26 @@ void AMDGPUPassConfig::addCodeGenPrepare() {
// but has been put before switch lowering and CFG flattening so that those
// passes can run on the more optimized control flow this pass creates in
// many cases.
+ //
+ // FIXME: This should ideally be put after the LoadStoreVectorizer.
+ // However, due to some annoying facts about ResourceUsageAnalysis,
+ // (especially as exercized in the resource-usage-dead-function test),
+ // we need all the function passes codegenprepare all the way through
+ // said resource usage analysis to run on the call graph produced
+ // before codegenprepare runs (because codegenprepare will knock some
+ // nodes out of the graph, which leads to funcction-level passes not
----------------
piotrAMD wrote:
Typo funcction.
https://github.com/llvm/llvm-project/pull/77952
More information about the llvm-commits
mailing list