]> granicus.if.org Git - llvm/commit
[x86] avoid vector load narrowing with extracted store uses (PR42305)
authorSanjay Patel <spatel@rotateright.com>
Wed, 19 Jun 2019 18:13:47 +0000 (18:13 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 19 Jun 2019 18:13:47 +0000 (18:13 +0000)
commit0f8cf4be4e11311bc578d40b58f350e23fff8b76
tree7a805f33acc3464e8f3028780cb7068e908e99d3
parent865ab505ecf7ae47287a87188d21898d3d865824
[x86] avoid vector load narrowing with extracted store uses (PR42305)

This is an exception to the rule that we should prefer xmm ops to ymm ops.
As shown in PR42305:
https://bugs.llvm.org/show_bug.cgi?id=42305
...the store folding opportunity with vextractf128 may result in better
perf by reducing the instruction count.

Differential Revision: https://reviews.llvm.org/D63517

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363853 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/sandybridge-loads.ll
test/CodeGen/X86/widen_load-3.ll