HomePhabricator

[AMDGPU] Fix for folding v2.16 literals.

Authored by dfukalov on Sep 4 2020, 12:44 PM.

Description

[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

Details

Committed
dfukalovSep 9 2020, 3:39 PM
Reviewer
rampitec
Differential Revision
D87158: [AMDGPU] Fix for folding v2.16 literals.
Parents
rG8b7c8f2c549d: Mark masked.{store,scatter,compressstore} intrinsics as write-only
Branches
Unknown
Tags
Unknown