[llvm] [SCEV] Unify and optimize constant folding (NFC) (PR #101473)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 1 06:30:48 PDT 2024


================
@@ -831,6 +831,41 @@ static bool hasHugeExpression(ArrayRef<const SCEV *> Ops) {
   });
 }
 
+template <typename FoldT, typename IsIdentityT, typename IsAbsorberT>
+static const SCEV *
+ConstantFoldAndGroupOps(ScalarEvolution &SE, LoopInfo &LI, DominatorTree &DT,
----------------
fhahn wrote:

```suggestion
constantFoldAndGroupOps(ScalarEvolution &SE, LoopInfo &LI, DominatorTree &DT,
```

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


More information about the llvm-commits mailing list