You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Optimize VectorX<T>.ConditionalSelect for constant masks (#104092)
* Optimize ConditionalSelect for const mask
This adds a check in the JIT for constant masks (`GT_CNS_VEC`, everything else gets lowered to it) and enables optimization to `BlendVariable` (`(v)pblendvb` instruction).
This currently does not work for masks loaded from an array in a field/variable.
Also this optimization is not triggered for platforms supporting AVX512F(/VL?) since it gets optimized earlier to `vpternlogd` instruction.
* Cleanup code and separate it into functions
* fix build
* Misc fixes
* Final build fixes
* Address review comments
* Address review comments again
* address the rest of the comments
* Remove scalar assertion
Co-authored-by: Tanner Gooding <[email protected]>
---------
Co-authored-by: Tanner Gooding <[email protected]>
0 commit comments