llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

Request to cherry-pick "[AMDGPU] Fix for folding v2.16 literals." onto 11.0 release branch

Open jayfoad opened this issue 6 years ago • 3 comments

Bugzilla Link 47516
Resolution FIXED
Resolved on Sep 14, 2020 06:27
Version 11.0
OS Linux
Blocks llvm/llvm-project#46070
CC @dfukalov,@dstutt,@zmodem,@arsenm,@trenouf

Extended Description

Please can you cherry-pick this AMDGPU codegen fix onto the 11.0 release branch?

commit c259d3a061c8fc0f9520208eb265d4352a0ad447 Author: dfukalov [email protected] Date: Fri Sep 4 22:44:01 2020 +0300

[AMDGPU] Fix for folding v2.16 literals.

It was found some packed immediate operands (e.g. `<half 1.0, half 2.0>`) are
incorrectly processed so one of two packed values were lost.

Introduced new function to check immediate 32-bit operand can be folded.
Converted condition about current op_sel flags value to fall-through.

Fixes: SWDEV-247595

Reviewed By: rampitec

Differential Revision: https://reviews.llvm.org/D87158

jayfoad avatar Sep 14 '20 10:09 jayfoad

Alternatively here is a cherry-pick with conflicts resolved and tests passing that you can pick from: https://github.com/jayfoad/llvm-project/pull/new/cherry-pick-d87158

Thanks! Pushed that as b3fb40b3a3c1fb7ac094eda50762624baad37552.

zmodem avatar Sep 14 '20 13:09 zmodem

Alternatively here is a cherry-pick with conflicts resolved and tests passing that you can pick from: https://github.com/jayfoad/llvm-project/pull/new/cherry-pick-d87158

jayfoad avatar Sep 14 '20 11:09 jayfoad

test case after conflict resolution A cherry-pick of the change onto the current 11.x branch has a conflict. Attached file is the test after conflict resolution (and passes lit testing).

dstutt avatar Sep 14 '20 11:09 dstutt