[llvm] [TailRecElim] Introduce support for shift accumulator optimization (PR #181331)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 17 09:18:04 PST 2026


================
@@ -82,12 +82,13 @@
 #include "llvm/Transforms/Scalar.h"
 #include "llvm/Transforms/Utils/BasicBlockUtils.h"
 #include <cmath>
+#include <variant>
 using namespace llvm;
 
 #define DEBUG_TYPE "tailcallelim"
 
 STATISTIC(NumEliminated, "Number of tail calls removed");
-STATISTIC(NumRetDuped,   "Number of return duplicated");
+STATISTIC(NumRetDuped, "Number of return duplicated");
----------------
boomanaiden154 wrote:

Formatting in that document is referring to formatting just the patch (like with `git clang-format`), not the entire file like done here. A format of the entire file should be a separate PR if it's necessary in the first place, and here it looks like it's probably not.

https://github.com/llvm/llvm-project/pull/181331


More information about the llvm-commits mailing list