In FoldConstantArithmetic, handle BUILD_VECTOR nodes that do implicit truncation on the elements.
This is similar to what is done in FoldConstantVectorArithmetic.
Differential D36506
[SelectionDAG] Allow constant folding for implicitly truncating BUILD_VECTOR nodes guyblank on Aug 8 2017, 11:00 PM. Authored by
Details In FoldConstantArithmetic, handle BUILD_VECTOR nodes that do implicit truncation on the elements. This is similar to what is done in FoldConstantVectorArithmetic.
Diff Detail Event TimelineComment Actions LGTM. The duplication between this and FoldConstantVectorArithmetic suggests that a merging is overdue - add a TODO comment? |