summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-07-13 11:09:52 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-07-13 11:09:52 +0000
commit36b944e778d40d38008c83f95719781251324380 (patch)
treec71dcdc6da37e468456e9fb6c66f6aa018a694cf /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent924d560867f40b6ae22ef4dec7078d44d3d7c7e1 (diff)
downloadbcm5719-llvm-36b944e778d40d38008c83f95719781251324380.tar.gz
bcm5719-llvm-36b944e778d40d38008c83f95719781251324380.zip
[SLPVectorizer] Add initial alternate opcode support for cast instructions. (REAPPLIED-2)
We currently only support binary instructions in the alternate opcode shuffles. This patch is an initial attempt at adding cast instructions as well, this raises several issues that we probably want to address as we continue to generalize the alternate mechanism: 1 - Duplication of cost determination - we should probably add scalar/vector costs helper functions and get BoUpSLP::getEntryCost to use them instead of determining costs directly. 2 - Support alternate instructions with the same opcode (e.g. casts with different src types) - alternate vectorization of calls with different IntrinsicIDs will require this. 3 - Allow alternates to be a different instruction type - mixing binary/cast/call etc. 4 - Allow passthrough of unsupported alternate instructions - related to PR30787/D28907 'copyable' elements. Reapplied with fix to only accept 2 different casts if they come from the same source type (PR38154). Differential Revision: https://reviews.llvm.org/D49135 llvm-svn: 336989
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud