diff options
author | Paul Walker <paul.walker@arm.com> | 2025-07-29 12:49:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-29 12:49:38 +0100 |
commit | 3ede2decbe271270e081e31ce26e3acd42de2f2c (patch) | |
tree | 88d4ddf46b4079369360d89e1cfbf53673b77fa3 /clang/test/Modules/ModuleModuleDebugInfo.cpp | |
parent | 1528ddbe76acbd80e3da44b3f248fc566d6ab40b (diff) | |
download | llvm-3ede2decbe271270e081e31ce26e3acd42de2f2c.zip llvm-3ede2decbe271270e081e31ce26e3acd42de2f2c.tar.gz llvm-3ede2decbe271270e081e31ce26e3acd42de2f2c.tar.bz2 |
[LLVM][LV] Improve UF calculation for vscale based scalar loops. (#146102)
Update getSmallConstantTripCount() to return scalable ElementCount
values that is used to acurrately determine the maximum value for UF,
namely:
TripCount / VF ==> X * VScale / Y * VScale ==> X / Y
This improves the chances of being able to remove the scalar loop and
also fixes an issue where a UF=2 is choosen for a scalar loop with
exactly VF(= X * VScale) iterations.
Diffstat (limited to 'clang/test/Modules/ModuleModuleDebugInfo.cpp')
0 files changed, 0 insertions, 0 deletions