summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/SampleProfile.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2019-01-14 18:44:02 +0000
committerSanjay Patel <spatel@rotateright.com>2019-01-14 18:44:02 +0000
commitb23ff7a0e251edffab75a498978224276bc1ebd0 (patch)
tree85279606a44020e52464f2ff26f1b025f4842b2e /llvm/lib/Transforms/IPO/SampleProfile.cpp
parent1b4623176447a8242acbcc509441dd2585f0815d (diff)
downloadbcm5719-llvm-b23ff7a0e251edffab75a498978224276bc1ebd0.tar.gz
bcm5719-llvm-b23ff7a0e251edffab75a498978224276bc1ebd0.zip
[x86] lower extracted add/sub to horizontal vector math
add (extractelt (X, 0), extractelt (X, 1)) --> extractelt (hadd X, X), 0 This is the integer sibling to D56011. There's an additional restriction to only to do this transform in the case where we don't have extra extracts from the source vector. Without that, we can fail to match larger horizontal patterns that are more beneficial than this minimal case. An improvement to the more general h-op lowering may allow us to remove the restriction here in a follow-up. llvm-svn: 351093
Diffstat (limited to 'llvm/lib/Transforms/IPO/SampleProfile.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud