The matching for V_FMA_MIX was partially implemented with a C++
matcher (for fmas with 32 bit results and 16 bit inputs) and partially
in tablegen (for fmas with 16 bit results). Move the C++ matcher logic
into tablegen to make this more consistent and so we can remove the
duplication between SDAG and GISel.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp | ||
---|---|---|
548–552 | This is losing the assert but this probably shouldn't be an assert in the first place, maybe could be a verifier check |
Comment Actions
Looks like a great cleanup, thanks!
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp | ||
---|---|---|
555 | Is it worth preserving the TODO somewhere? |
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp | ||
---|---|---|
555 | I added a TODO about handling of denormals in general in the version I pushed. |
This is losing the assert but this probably shouldn't be an assert in the first place, maybe could be a verifier check