diff options
author | Sanjay Patel <spatel@rotateright.com> | 2022-01-28 09:55:13 -0500 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2022-01-28 10:22:52 -0500 |
commit | b4b97ec813a02585000f30ac7d532dda74e8bfda (patch) | |
tree | 54767ca7ee7c3bfe19afb05ee43cd792e45e20de /llvm/lib/Object/MachOObjectFile.cpp | |
parent | 588f121ada6d5418290e271bcaf2d1bada500912 (diff) | |
download | llvm-b4b97ec813a02585000f30ac7d532dda74e8bfda.zip llvm-b4b97ec813a02585000f30ac7d532dda74e8bfda.tar.gz llvm-b4b97ec813a02585000f30ac7d532dda74e8bfda.tar.bz2 |
[x86] try harder to scalarize a vector load with extracted integer op uses
extract_vec_elt (load X), C --> scalar load (X+C)
As noted in the comment, DAGCombiner has this fold -- and the code in this
patch is adapted from DAGCombiner::scalarizeExtractedVectorLoad() -- but
x86 should benefit even if the loaded vector has other uses as long as we
apply some other x86-specific conditions. The motivating example from #50310
is shown in vec_int_to_fp.ll.
Fixes #50310
Differential Revision: https://reviews.llvm.org/D118376
Diffstat (limited to 'llvm/lib/Object/MachOObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions