Folding EXEC copy into it's single use may lead to constant bus constraint violation as it adds one more SGPR operand.
This change makes it validate the user instruction with the new SGPR operand and only fold it if it is legal.
Differential D98888
[AMDGPU] SIOptimizeExecMaskingPreRA should check constant bus constraint when folds EXEC copy alex-t on Mar 18 2021, 12:31 PM. Authored by
Details Folding EXEC copy into it's single use may lead to constant bus constraint violation as it adds one more SGPR operand. This change makes it validate the user instruction with the new SGPR operand and only fold it if it is legal.
Diff Detail
Event TimelineComment Actions Needs test.
Comment Actions With the change test checks for the COPY but w/o change, it reports "Bad machine code" error because of the "-verify-machineinstrs".
|
clang-tidy: warning: invalid case style for variable 'idx' [readability-identifier-naming]
not useful