llvm-project
c8f4c35a - AMDGPU: Correctly handle folding immediates into subregister use operands (#129664)

Commit
360 days ago
AMDGPU: Correctly handle folding immediates into subregister use operands (#129664) This fixes a miscompile where a 64-bit materialize incorrectly folds into a sub1 use operand. We currently do not see many subregister use operands. Incidentally, there are also SIFoldOperands bugs that prevent this fold from appearing here. Pre-fix folding of 32-bit subregister uses from 64-bit materializes, in preparation for future patches. The existing APIs are awkward since they expect to have a fully formed instruction with operands to use, and not something new which needs to be created.
Author
Parents
Loading