Constructing a Vector4
from 4 constant floats is very inefficient
#10044
Labels
area-CodeGen-coreclr
CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI
optimization
Milestone
Code that is in the form of:
var value = new Vector4(1, 2, 3, 4)
currently generates very inefficient code.Today, this produces something similar to:
The JIT should recognize this type of code and instead optimize it to be a single read:
category:cq
theme:vector-codegen
skill-level:intermediate
cost:medium
The text was updated successfully, but these errors were encountered: