
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
The LLVM Compiler Infrastructure ================================ This directory and its subdirectories contain source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and runtime environments. LLVM is open source software. You may freely distribute it under the terms of the license agreement found in LICENSE.txt. Please see the documentation provided in docs/ for further assistance with LLVM, and in particular docs/GettingStarted.rst for getting started with LLVM and docs/README.txt for an overview of LLVM's documentation setup. If you are writing a package for LLVM, see docs/Packaging.rst for our suggestions.