Unverified Commit d4b8b721 authored by Pierre van Houtryve's avatar Pierre van Houtryve Committed by GitHub
Browse files

[CodeGen][MachineLICM] Use RegUnits in HoistRegionPostRA (#94608)

Those BitVectors get expensive on targets like AMDGPU with thousands of
registers, and RegAliasIterator is also expensive.

We can move all liveness calculations to use RegUnits instead to speed
it up for targets where RegAliasIterator is expensive, like AMDGPU.
On targets where RegAliasIterator is cheap, this alternative can be a little more expensive, but I believe the tradeoff is worth it.
parent 546c816a
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment