[llvm] [AMDGPULowerBufferFatPointers] Expand const exprs using fat pointers (PR #95558)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 14 09:11:57 PDT 2024
================
@@ -1888,6 +1746,36 @@ bool AMDGPULowerBufferFatPointers::run(Module &M, const TargetMachine &TM) {
"buffer resource pointers (address space 8) instead.");
}
+ {
+ // Collect all constant exprs and aggregates referenced by any function.
+ SmallVector<Constant *, 8> Worklist;
+ for (Function &F : M.functions())
----------------
arsenm wrote:
Braces
https://github.com/llvm/llvm-project/pull/95558
More information about the llvm-commits
mailing list