Try out using combine definition rules.
This really should be a post-legalizer combine, but the combiner pass
is currently pre-legalize. Most of the target combines are really
post-legalize, so we should probably move the pass.
Paths
| Differential D73287
AMDGPU/GlobalISel: Combine FMIN_LEGACY/FMAX_LEGACY ClosedPublic Authored by arsenm on Jan 23 2020, 12:31 PM.
Details
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jan 30 2020, 11:11 PM Comment Actions
Most of our target combines belong post-legalize and post-regbankselect. I'm mostly just unsure how to organize the 3 combiner passes which largely overlap. I'm not sure if we should juts have one combiner pass run in 3 different modes, or actually 3 distinct passes. Comment Actions
Maybe go with 3 distinct passes that have some sort of common base / place where shared code can go?
Revision Contents
Diff 239978 llvm/lib/Target/AMDGPU/AMDGPUCombine.tdllvm/lib/Target/AMDGPU/AMDGPUGISel.td
llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp
llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
llvm/lib/Target/AMDGPU/SIInstructions.td
llvm/test/CodeGen/AMDGPU/GlobalISel/fmax_legacy.ll
llvm/test/CodeGen/AMDGPU/GlobalISel/fmin_legacy.ll
|
Should have been CI rather than VI.