Clear the map when running the analysis multiple times.
The assertion below that should ensure that every function is only
analyzed once triggered sometimes (once every ~70 compiles of some
graphics pipelines).
If someone knows how to add a testcase, that would be nice, because
I don't know how to test for this.
clang-tidy: error: 'this' argument to member function 'clear' has type 'const DenseMap<const llvm::Function *, llvm::AMDGPUResourceUsageAnalysis::SIFunctionResourceInfo>', but function is not marked const [clang-diagnostic-error]
not useful