Commit 0d6742d
Skip declarations in ResourceAllocator
FunctionsInfo metadata can contain declarations
(functions with no body). When ResourceAllocator calls
getAnalysis<ExtensionArgAnalysis>(F) on a declaration, LLVM's FPPassManager skips it, so the analysis never runs and
findAnalysisPass returns nullptr, triggering an assert.
Skip declarations in the runOnModule loop.1 parent be2f91c commit 0d6742d
File tree
1 file changed
+2
-0
lines changed- IGC/Compiler/Optimizer/OpenCLPasses/ResourceAllocator
1 file changed
+2
-0
lines changedLines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
0 commit comments