In case the source value ends up in a VGPR, insert a readfirstlane to
avoid producing an illegal copy later. If it turns out to be
unnecessary, it can be folded out.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Please remove the changes in the bswap test. It is critically important that we do not insert unnecessary v_readfirstlane insructions. Mesa performance leans on this quite heavily.
Comment Actions
Come to think of it, is there an explicit test that we *don't* insert v_readfirstlane when none is needed at all?
Comment Actions
This is just noise for the purpose of the bswap test. We already fold out unneeded. readfirstlanes in 3 different places which already have tests. I’m also planning on adding another in the regbank aware combiner