Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp | ||
---|---|---|
22–23 | Some small detail I'm unsure about: Should I put these in the GET_GICOMBINER_DEPS and also do a typedef of GIMatchTableExecutor to something like ClassNameBase ? That way users don't even need to know about the match table executor. |
llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp | ||
---|---|---|
85 | function_ref(I guess this was wrong before) |
llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp | ||
---|---|---|
85 | It doesn't work because of the lifetime of the function unfortunately, there's a segfault |
Add missing setupMF call
Currently it's called on every call to combine() which is annoying. I'd prefer if we only instantiated everything once.
It's a cheap function though so I believe it's fine to start with.
I think when/if this all lands and the dust settles a bit, we need to remove CombinerInfo and replace it with something
closer to InstructionSelector, e.g. have a InstructionCombiner base class and instantiate it once.
It's a bigger refactor though so I think it's better to do it later to make the review stack less confusing.
Some small detail I'm unsure about: Should I put these in the GET_GICOMBINER_DEPS and also do a typedef of GIMatchTableExecutor to something like ClassNameBase ? That way users don't even need to know about the match table executor.