aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorLuke Lau <luke@igalia.com>2025-05-27 16:27:28 +0100
committerGitHub <noreply@github.com>2025-05-27 16:27:28 +0100
commit97f6076dedc6ba78ccdb36f53a6953a66abfd395 (patch)
treeeffa1cbedad186c4e007059aa7fc0be075f4d666 /clang/lib/CodeGen/CodeGenFunction.cpp
parentb5588ce746755b4aaf071ab19a403099c8334f84 (diff)
downloadllvm-97f6076dedc6ba78ccdb36f53a6953a66abfd395.zip
llvm-97f6076dedc6ba78ccdb36f53a6953a66abfd395.tar.gz
llvm-97f6076dedc6ba78ccdb36f53a6953a66abfd395.tar.bz2
[VectorCombine][X86] Use updated getVectorInstrCost hook (#137823)
This addresses a TODO where previously scalarizeBinopOrCmp conservatively bailed if one of the operands was a load. getVectorInstrCost was updated to take in values in https://reviews.llvm.org/D140498 so we can pass in the scalar value to be inserted, which should return an accurate cost for a gather. To prevent regressions on x86 this tries to constant fold NewVecC up front so we can pass it into TTI and get a more accurate cost. We want to remove this restriction on RISC-V since this is always profitable whether or not the scalar is a load.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions