[all-commits] [llvm/llvm-project] 7f8b2e: GlobalISel: Pass LegalizerHelper to custom legaliz...
Matt Arsenault via All-commits
all-commits at lists.llvm.org
Thu Jun 18 14:17:57 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 7f8b2e1b919dd75e5420222e6a81bb05144f67bc
https://github.com/llvm/llvm-project/commit/7f8b2e1b919dd75e5420222e6a81bb05144f67bc
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2020-06-18 (Thu, 18 Jun 2020)
Changed paths:
M llvm/include/llvm/CodeGen/GlobalISel/LegalizerHelper.h
M llvm/include/llvm/CodeGen/GlobalISel/LegalizerInfo.h
M llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
M llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
M llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.h
M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.h
M llvm/lib/Target/ARM/ARMLegalizerInfo.cpp
M llvm/lib/Target/ARM/ARMLegalizerInfo.h
M llvm/lib/Target/Mips/MipsLegalizerInfo.cpp
M llvm/lib/Target/Mips/MipsLegalizerInfo.h
M llvm/lib/Target/X86/X86LegalizerInfo.cpp
M llvm/lib/Target/X86/X86LegalizerInfo.h
Log Message:
-----------
GlobalISel: Pass LegalizerHelper to custom legalize callbacks
This was passing in all the parameters needed to construct a
LegalizerHelper in the custom legalization, when it's simpler to just
pass in the existing helper.
This is slightly more annoying to use in the common case where you
don't need the legalizer helper, but we could add back the common
parameters back in addition to the helper.
I didn't propagate this to all the internal target changes that this
logically implies, but did update a sample one for
legalizeMinNumMaxNum.
This is in preparation for moving AMDGPU load/store legalization
entirely into custom lowering. The current set of legalization actions
is really constraining and not really capable of expressing all the
actions needed to legalize loads/stores. In particular there's no way
to express when the memory access itself needs to change size vs. the
result type. There's also a lot of redundancy since the same
split/widen actions need to be applied in both vector and scalar
cases. All of the sub-cases logically belong as steps in the legalizer
helper, but it will be easier to consider everything at once in custom
lowering.
Commit: 2ec1267ecec372e55aed0995917b601f7cf61c5e
https://github.com/llvm/llvm-project/commit/2ec1267ecec372e55aed0995917b601f7cf61c5e
Author: Matt Arsenault <Matthew.Arsenault at amd.com>
Date: 2020-06-18 (Thu, 18 Jun 2020)
Changed paths:
M llvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
Log Message:
-----------
GlobalISel: Fix some artifact combiner worklist inconsistencies
In one case, UpdateDefs was not getting set and a dead SmallVector
constructed. In another, it was adding new vreg defs to the updated
set which should be unnecessary. This also wasn't considering the
multiple defs of G_UNMERGE_VALUES.
Also increase the small vector sizes for merge/unmerge operands to the
usual semi-arbitrary 8. While debugging these, I'm usually seeing
merges and unmerges with at least 4 uses/defs.
I haven't run into an actual problem from any of these though.
Compare: https://github.com/llvm/llvm-project/compare/b4459b597a67...2ec1267ecec3
More information about the All-commits
mailing list