Issue |
159346
|
Summary |
Introduce utility for common range-based transforms
|
Labels |
code-cleanup,
llvm:transforms
|
Assignees |
|
Reporter |
nikic
|
Currently, we have a lot of transforms that are duplicated between CVP and SCCP. Both of these are range-based transforms, which use different ways to obtain the range.
CVP: https://github.com/llvm/llvm-project/blob/main/llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
SCCP: https://github.com/llvm/llvm-project/blob/6a726e9a4d3d05f9aecf366fb6488d63135f04f3/llvm/lib/Transforms/Utils/SCCPSolver.cpp#L290-L317
It would be good to have a common utility where we can place transforms we want to have in both passes. (Some of them we may only want in one or the other, e.g. because they are too expensive for LVI, or because we don't want them in the early pipeline.)
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs