diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-10-14 10:35:27 +0100 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-10-14 10:42:27 +0100 |
commit | 1e4d882f9afe3fa5d0085f056b56eec21eb2c087 (patch) | |
tree | 73e5c6b8cb7851ddbeb8dc285de4049f79278588 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | 6fbad9bf304c05d37454420f7d5a1c2ab3adab20 (diff) | |
download | llvm-1e4d882f9afe3fa5d0085f056b56eec21eb2c087.zip llvm-1e4d882f9afe3fa5d0085f056b56eec21eb2c087.tar.gz llvm-1e4d882f9afe3fa5d0085f056b56eec21eb2c087.tar.bz2 |
[InstCombine] matchFunnelShift - add support for non-uniform vectors containing undefs.
Replace m_SpecificInt with m_APIntAllowUndef to matching splats containing undefs, then use ConstantExpr::mergeUndefsWith to merge the undefs together in the result.
The undef funnel shift amounts are getting replaced with zero later on - I'll address this in a later patch, otherwise we lose potential shift by splat value patterns.
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions