diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-10-30 10:32:11 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2018-10-30 10:32:11 +0000 |
| commit | 858303b827f0cfcc242ed7852cc36b7dd5a0e95c (patch) | |
| tree | 6214b0a7f678e413bd8a8f97deebc32f97fdc9d7 /llvm/lib/Target/PowerPC/PPCFrameLowering.cpp | |
| parent | 4538ed3b85b1b77a1ca4cec1c1dc57a9a0d38fee (diff) | |
| download | bcm5719-llvm-858303b827f0cfcc242ed7852cc36b7dd5a0e95c.tar.gz bcm5719-llvm-858303b827f0cfcc242ed7852cc36b7dd5a0e95c.zip | |
[SelectionDAG] Add FoldBUILD_VECTOR to simplify new BUILD_VECTOR nodes
Similar to FoldCONCAT_VECTORS, this patch adds FoldBUILD_VECTOR to simplify cases that can avoid the creation of the BUILD_VECTOR - if all the operands are UNDEF or if the BUILD_VECTOR simplifies to a copy.
This exposed an assumption in some AMDGPU code that getBuildVector was guaranteed to be a BUILD_VECTOR node that I've tried to handle.
Differential Revision: https://reviews.llvm.org/D53760
llvm-svn: 345578
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCFrameLowering.cpp')
0 files changed, 0 insertions, 0 deletions

