HomePhabricator

[AMDGPU][GlobalISel] Stop foldInsertEltToCmpSelect from changing reg banks

Authored by mbrkusanin on May 25 2021, 10:25 AM.

Description

[AMDGPU][GlobalISel] Stop foldInsertEltToCmpSelect from changing reg banks

This function can change regbank for registers which already have a selected
bank. Depending on the instruction where these registers were used it can
cause instruction selection to fail.