From: Matt Arsenault Date: Wed, 19 Aug 2020 17:59:11 +0000 (-0400) Subject: AMDGPU/GlobalISel: Remove hack for combines forming illegal extloads X-Git-Tag: llvmorg-13-init~14260 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e8d59a9b81ec152e33881ed5bd3aa07ac805db0;p=platform%2Fupstream%2Fllvm.git AMDGPU/GlobalISel: Remove hack for combines forming illegal extloads Previously we weren't adding the LegalizerInfo to the post-legalizer combiner. Since that's fixed, we don't need to try to filter out the one case that was breaking. --- diff --git a/llvm/lib/Target/AMDGPU/AMDGPUCombine.td b/llvm/lib/Target/AMDGPU/AMDGPUCombine.td index faaf916..d243074 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPUCombine.td +++ b/llvm/lib/Target/AMDGPU/AMDGPUCombine.td @@ -47,18 +47,9 @@ def AMDGPUPreLegalizerCombinerHelper: GICombinerHelper< let DisableRuleOption = "amdgpuprelegalizercombiner-disable-rule"; } - -// FIXME: combines_for_extload can introduce illegal extloads which -// aren't re-legalized. -// FIXME: Is there a way to remove a single item from all_combines? -def all_combines_minus_extload : GICombineGroup<[trivial_combines, - ptr_add_immed_chain, combine_indexed_load_store, undef_combines, - identity_combines] ->; - def AMDGPUPostLegalizerCombinerHelper: GICombinerHelper< "AMDGPUGenPostLegalizerCombinerHelper", - [all_combines_minus_extload, gfx6gfx7_combines, + [all_combines, gfx6gfx7_combines, uchar_to_float, cvt_f32_ubyteN]> { let DisableRuleOption = "amdgpupostlegalizercombiner-disable-rule"; }