diff options
author | Florian Hahn <flo@fhahn.com> | 2024-07-02 19:32:28 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-02 19:32:28 +0100 |
commit | 2f89d4a8c79a2e88f2749c7460886e0d776f3aff (patch) | |
tree | 93970c8581ea8460d15c6db00a2fbeec36f5c723 /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp | |
parent | 3c50cbfda4fc3ad85349167132f7ed809ecc685a (diff) | |
download | llvm-2f89d4a8c79a2e88f2749c7460886e0d776f3aff.zip llvm-2f89d4a8c79a2e88f2749c7460886e0d776f3aff.tar.gz llvm-2f89d4a8c79a2e88f2749c7460886e0d776f3aff.tar.bz2 |
[SCEV] Split collecting and applying rewrite info from loop guards (NFC) (#97316)
Introduce a new LoopGuards class to track info from loop guards and split
off collecting rewrite info to LoopGuards::collect. This allows users of
applyLoopGuards to collect rewrite info once in cases where the same
loop guards are applied multiple times.
This is used to collect rewrite info once in howFarToZero, which saves a
bit of compile-time:
stage1-O3: -0.04%
stage1-ReleaseThinLTO: -0.02%
stage1-ReleaseLTO-g: -0.04%
stage2-O3: -0.02%
https://llvm-compile-time-tracker.com/compare.php?from=117b53ae38428ca66eaa886fb432e6f09db88fe4&to=4ffb7b2e1c99081ccebe6f236c48a0be2f64b6ff&stat=instructions:u
Notably this improves mafft by -0.9% with -O3, -0.11% with LTO and
-0.12% with stage2-O3.
PR: https://github.com/llvm/llvm-project/pull/97316
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions