diff options
author | Florian Hahn <flo@fhahn.com> | 2024-05-14 19:47:24 +0100 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2024-05-14 19:47:24 +0100 |
commit | 179efe5abc745b5646efeb33fef86c55aa4fd7dc (patch) | |
tree | b24009dc0b9d8a456b27b45fb4c452d35208e0a7 /llvm/lib/Transforms/Utils/ModuleUtils.cpp | |
parent | 5adfcb07501f1d128e6517e60d30f2e3a0dc8eaa (diff) | |
download | llvm-179efe5abc745b5646efeb33fef86c55aa4fd7dc.zip llvm-179efe5abc745b5646efeb33fef86c55aa4fd7dc.tar.gz llvm-179efe5abc745b5646efeb33fef86c55aa4fd7dc.tar.bz2 |
[LAA] Delay applying loop guards until after isSafeDependenceDistance.
Applying the loop guards to the distance may prevent
isSafeDependenceDistance from determining NoDep, unless loop guards are
also applied to the backedge-taken-count.
Instead of applying the guards to both Dist and the
backedge-taken-count, just apply them after handling
isSafeDependenceDistance and constant distances; there is no benefit to
applying the guards before then.
This fixes a regression flagged by @bjope due to
ecae3ed958481cba7d60868cf3504292f7f4fdf5.
Diffstat (limited to 'llvm/lib/Transforms/Utils/ModuleUtils.cpp')
0 files changed, 0 insertions, 0 deletions