aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectOptimize.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2024-12-10 16:28:56 +0000
committerGitHub <noreply@github.com>2024-12-10 16:28:56 +0000
commit4f933277a53d61f7df42e70ec8ec465652019f7f (patch)
tree158ff31045ba436baa5c7f3bf113c10557628d3d /llvm/lib/CodeGen/SelectOptimize.cpp
parented91843d435d0cd2c39ebb1a50f2907c621f07ed (diff)
downloadllvm-4f933277a53d61f7df42e70ec8ec465652019f7f.zip
llvm-4f933277a53d61f7df42e70ec8ec465652019f7f.tar.gz
llvm-4f933277a53d61f7df42e70ec8ec465652019f7f.tar.bz2
[CostModel][X86] Improve cost estimation of insert_subvector shuffle patterns of legalized types (#119363)
In cases where the base/sub vector type in an insert_subvector pattern legalize to the same width through splitting, we can assume that the shuffle becomes free as the legalized vectors will not overlap. Note this isn't true if the vectors have been widened during legalization (e.g. v2f32 insertion into v4f32 would legalize to v4f32 into v4f32). Noticed while working on adding processShuffleMasks handling for SK_PermuteTwoSrc.
Diffstat (limited to 'llvm/lib/CodeGen/SelectOptimize.cpp')
0 files changed, 0 insertions, 0 deletions