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

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 16 12:11:27 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:

It looks like there's a lot of drive-by formatting in this file? That should probably be reverted to make the actual changes easier to see.

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


More information about the llvm-commits mailing list