llvm-project
8a9c0755 - [AMDGPU][CodeGen] Allow remat with multiple users in same region (#214725)

Commit
13 days ago
[AMDGPU][CodeGen] Allow remat with multiple users in same region (#214725) This relaxes one of the constraints on rematerialization candidates in the scheduler's `PreRARematStage`. The current implementation only allows rematerializing a register if it has a single user. This allows it when a register has multiple users in the same region. In such cases the register is rematerialized once just before the first user in program order. The cost model for assessing rematerialization opportunities stays unchanged since a register is only ever rematerialized to a single location.
Author
Parents
Loading