aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectSyntax.cpp
diff options
context:
space:
mode:
authorDimitry Andric <dimitry@andric.com>2016-02-19 20:14:11 +0000
committerDimitry Andric <dimitry@andric.com>2016-02-19 20:14:11 +0000
commitdb417b6d4021c25acb00811d40a68a96753a8352 (patch)
tree8930eb2d2884041a5f59945f4c2563344abcb737 /lldb/source/Commands/CommandObjectSyntax.cpp
parentffb7bd11f77a351e23f3a747873a8e3c7972d4c5 (diff)
downloadllvm-db417b6d4021c25acb00811d40a68a96753a8352.zip
llvm-db417b6d4021c25acb00811d40a68a96753a8352.tar.gz
llvm-db417b6d4021c25acb00811d40a68a96753a8352.tar.bz2
Fix incorrect selection of AVX512 sqrt when OptForSize is on
Summary: When optimizing for size, sqrt calls can be incorrectly selected as AVX512 VSQRT instructions. This is because X86InstrAVX512.td has a `Requires<[OptForSize]>` in its `avx512_sqrt_scalar` multiclass definition. Even if the target does not support AVX512, the class can apparently still be chosen, leading to an incorrect selection of `vsqrtss`. In PR26625, this lead to an assertion: Reg >= X86::FP0 && Reg <= X86::FP6 && "Expected FP register!", because the `vsqrtss` instruction requires an XMM register, which is not available on i686 CPUs. Reviewers: grosbach, resistor, joker.eph Subscribers: spatel, emaste, llvm-commits Differential Revision: http://reviews.llvm.org/D17414 llvm-svn: 261360
Diffstat (limited to 'lldb/source/Commands/CommandObjectSyntax.cpp')
0 files changed, 0 insertions, 0 deletions