aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDavid Sherwood <david.sherwood@arm.com>2025-02-03 09:49:26 +0000
committerGitHub <noreply@github.com>2025-02-03 09:49:26 +0000
commit50d5d06d383616b88a71512d58b0f5bf365d921b (patch)
treeae2825c7d57a068e3b6562a66679ac3efca6318d /clang/lib/CodeGen/CodeGenModule.cpp
parent6303563b40f9d7896f0d44380f397560143da26b (diff)
downloadllvm-50d5d06d383616b88a71512d58b0f5bf365d921b.zip
llvm-50d5d06d383616b88a71512d58b0f5bf365d921b.tar.gz
llvm-50d5d06d383616b88a71512d58b0f5bf365d921b.tar.bz2
[LoopVectorize][NFC] Cache the result of getVScaleForTuning (#124732)
We currently call getVScaleForTuning in many places, doing a lot of work asking the same question with the same answer. I've refactored the code to cache the value if the max scalable VF != 0 and pull out the cached value from LoopVectorizationCostModel.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions