[llvm] [VPlan] Use InstSimplifyFolder in tryToConstantFold (PR #141222)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri May 23 03:43:41 PDT 2025
================
@@ -939,8 +939,9 @@ static void recursivelyDeleteDeadRecipes(VPValue *V) {
}
}
-/// Try to fold \p R using TargetFolder to a constant. Will succeed and return a
-/// non-nullptr Value for a handled \p Opcode if all \p Operands are constant.
+/// Try to fold \p R using InstSimplifyFolder to a constant. Will succeed and
+/// return a non-nullptr Value for a handled \p Opcode if \p Operands are
+/// foldable.
----------------
fhahn wrote:
Comment at line 997 should be updated, this now doesn't just fold constant, but folds recipes with all live-in operands to other live-ins.
https://github.com/llvm/llvm-project/pull/141222
More information about the llvm-commits
mailing list