diff options
author | Jay Foad <jay.foad@amd.com> | 2022-01-07 11:44:49 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@amd.com> | 2022-01-08 09:20:44 +0000 |
commit | ff971873b3fcb8f96fdc53f0140257b2c7979ec5 (patch) | |
tree | d2158c559df48b9b0544ddd10be7e5cd1c4e2e1a /lldb/source/Commands/CommandObjectScript.cpp | |
parent | fb4869e26c80dfc15d44d2c992f1958a1214d183 (diff) | |
download | llvm-ff971873b3fcb8f96fdc53f0140257b2c7979ec5.zip llvm-ff971873b3fcb8f96fdc53f0140257b2c7979ec5.tar.gz llvm-ff971873b3fcb8f96fdc53f0140257b2c7979ec5.tar.bz2 |
[GlobalISel] Fix legality checks for G_UBFX combines
1. Fix CombinerHelper::matchBitfieldExtractFromAnd to check legality
with the correct types for the G_UBFX that it builds.
2. Fix AMDGPUTargetLowering::isConstantUnsignedBitfieldExtractLegal to
match the legality rules: result and first operand can be s32 or s64
but the "shift amount" operands are always s32.
3. Add AMDGPU tests where the post-legalizer combiner would create
illegal MIR without the above fixes.
Differential Revision: https://reviews.llvm.org/D116802
Diffstat (limited to 'lldb/source/Commands/CommandObjectScript.cpp')
0 files changed, 0 insertions, 0 deletions