In FoldConstantArithmetic, handle BUILD_VECTOR nodes that do implicit truncation on the elements.
This is similar to what is done in FoldConstantVectorArithmetic.
Paths
| Differential D36506
[SelectionDAG] Allow constant folding for implicitly truncating BUILD_VECTOR nodes ClosedPublic Authored by guyblank on Aug 8 2017, 11:00 PM.
Details Summary 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? This revision is now accepted and ready to land.Aug 10 2017, 3:39 AM Closed by commit rL310593: [SelectionDAG] Allow constant folding for implicitly truncating BUILD_VECTOR… (authored by guyblank). · Explain WhyAug 10 2017, 7:10 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 110577 llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/trunk/test/CodeGen/X86/avx512-intrinsics.ll
|