Optimize v[k] where v is float4 and k is constant

NEW
Unassigned

Status

P3
normal
7 years ago
7 years ago

People

(Reporter: lhansen, Unassigned)

Tracking

unspecified
Q2 12 - Cyril

Details

(Reporter)

Description

7 years ago
If v is known to be a float4, the code generated for v[0] should be the same as the code generated for v.x, and both should be about one instruction.

(This bug is not about v[k] for variable k - the performance of that is less important.)
You need to log in before you can comment on or make changes to this bug.