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.
Paths
| Differential D83882
[Legalize] Hoist invariant condition in ExpandVectorBuildThroughStack(...) ClosedPublic Authored by cameron.mcinally on Jul 15 2020, 8:46 AM.
Details Summary 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 Event TimelineThis revision is now accepted and ready to land.Jul 15 2020, 8:50 AM Closed by commit rGae51a70030b5: [Legalize] Hoist invariant condition in ExpandVectorBuildThroughStack(...) (authored by cameron.mcinally). · Explain WhyJul 15 2020, 9:05 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 278205 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
|