[llvm] [VPlan] Introduce VPlanConstantFolder (PR #125365)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 24 05:46:44 PST 2025
nikic wrote:
> @nikic I'm not sure how the ConstantExpr creation ties into your effort to remove constant-expressions. Could you kindly have a look?
Please only use APIs defined in https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/Analysis/ConstantFolding.h.
I'd consider only extracting the IR values and delegating the actual folding to https://github.com/llvm/llvm-project/blob/main/llvm/include/llvm/Analysis/TargetFolder.h.
https://github.com/llvm/llvm-project/pull/125365
More information about the llvm-commits
mailing list