Skip to content

Disable DXIL math refactoring for CL

CL has the ability to say "disable contractions" meaning don't promote (a * b) + c into fma(a, b, c). This is necessary to ensure that (a * b) + c == 0 doesn't change behavior by increasing the intermediate precision. We could parse out the ContractionsOff execution mode... but really, CL in general has precision requirements that should preclude any refactoring that we haven't already done in nir.

Merge request reports