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
kmpeng
changed the title
[SPIRV] Add PreLegalizer instCombine for faceforward GL extension
[SPIRV] Add PreLegalizer pattern matching for faceforward GL extension
May 16, 2025
Follow up to #99114.
The codegen for
faceforward
looks something likewhich means we can pattern match in
SPIRVCombine.td
andSPIRVPreLegalizerCombiner.cpp
toThis would allow us to change
select(fcmp(dot(p2, p3), 0), p1, 0 - p1)
tofaceforward(p1, p2, p3)
so that we use the right SPIR-V extension function.The text was updated successfully, but these errors were encountered: