summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGen
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-07-10 07:58:33 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-07-10 07:58:33 +0000
commitd32ca2c0b78def49ed6e9b612f5481775662fc4e (patch)
treeb98de2c086c2fe9c75bc23178e05c0a5c29cc5ef /clang/test/CodeGen
parent5fd020c0829b1ac201fc1b7494d8f5c5375613ea (diff)
downloadbcm5719-llvm-d32ca2c0b78def49ed6e9b612f5481775662fc4e.tar.gz
bcm5719-llvm-d32ca2c0b78def49ed6e9b612f5481775662fc4e.zip
[X86][SSE] Prefer BLEND(SHL(v,c1),SHL(v,c2)) over MUL(v, c3)
Now that rL336250 has landed, we should prefer 2 immediate shifts + a shuffle blend over performing a multiply. Despite the increase in instructions, this is quicker (especially for slow v4i32 multiplies), avoid loads and constant pool usage. It does mean however that we increase register pressure. The code size will go up a little but by less than what we save on the constant pool data. This patch also adds support for v16i16 to the BLEND(SHIFT(v,c1),SHIFT(v,c2)) combine, and also prevents blending on pre-SSE41 shifts if it would introduce extra blend masks/constant pool usage. Differential Revision: https://reviews.llvm.org/D48936 llvm-svn: 336642
Diffstat (limited to 'clang/test/CodeGen')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud