The operands of a BUILD_VECTOR must all have the same type, so we can hoist this invariant condition out of the loop.
I'm a little torn if this change actually helps code clarity, so would be happy to abandon it too.
Differential D83882
[Legalize] Hoist invariant condition in ExpandVectorBuildThroughStack(...) Authored by cameron.mcinally on Jul 15 2020, 8:46 AM.
Details The operands of a BUILD_VECTOR must all have the same type, so we can hoist this invariant condition out of the loop. I'm a little torn if this change actually helps code clarity, so would be happy to abandon it too.
Diff Detail
|